A switch keeps a child the copy swapped for another component, and when
the new variant holds that same component at the child's place the swap
ends: the child becomes a plain copy of its new position. It kept the
values it had, though, untouched, so it showed its old size or opacity
where its new main authored others, until some later sync. When a switch
ends a kept child's swap, the switched copy now syncs as an ordinary
copy, as it already did when it carries a size.
Benchmark (scripts/bench-components, ms, lower 2.5% quantile):
| world | baseline | now | ratio |
|------------------------------------+----------+---------+-------|
| deepest-edit-through-three-levels | 35.215 | 20.516 | 0.58 |
| edit-through-a-chain-of-dependents | 68.931 | 40.411 | 0.59 |
| library-update-into-copies | 83.083 | 52.359 | 0.63 |
| main-edit-among-many-shapes | 4.837 | 2.024 | 0.42 |
| main-edit-into-10-copies | 1.790 | 0.954 | 0.53 |
| main-edit-into-100-copies | 15.415 | 9.210 | 0.60 |
| main-edit-into-1000-copies | 153.086 | 91.498 | 0.60 |
| variant-switch-into-copies | 32.052 | 19.466 | 0.61 |
AI-assisted-by: claude-opus-5-5