alonso.torres 4cf38cfad1 🐛 Sync a switched copy whose child's swap the switch ends
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
2026-11-18 10:29:47 +01:00
..
2026-11-10 20:21:16 +01:00
2026-09-29 09:07:34 +02:00
2026-03-11 15:24:40 +01:00