A switch carries a child's override only where the old and the new
variant agree on the attribute. It compared them after turning the old
main's shapes by the turn from the new main to the new copy. When the
variants' mains are turned or flipped differently, the old main's child
took that foreign turn: it could agree with the new copy child where the
variants differ, carrying a flip or turn without its transform and
marking an override, and could disagree where they share a value.
The old main's shapes now turn by the turn from the old main to the old
copy, the frame the new copy keeps.
Benchmark (scripts/bench-components, ms, lower 2.5% quantile):
| :world | :baseline | :now | :mean | :ratio |
|------------------------------------+-----------+--------+--------+--------|
| deepest-edit-through-three-levels | 35.215 | 19.875 | 21.479 | 0.56 |
| edit-through-a-chain-of-dependents | 68.931 | 38.173 | 40.003 | 0.55 |
| library-update-into-copies | 83.083 | 48.724 | 51.431 | 0.59 |
| main-edit-among-many-shapes | 4.837 | 2.134 | 2.372 | 0.44 |
| main-edit-into-10-copies | 1.79 | 0.936 | 0.978 | 0.52 |
| main-edit-into-100-copies | 15.415 | 8.966 | 9.425 | 0.58 |
| main-edit-into-1000-copies | 153.086 | 91.951 | 97.661 | 0.6 |
| variant-switch-into-copies | 32.052 | 21.553 | 22.054 | 0.67 |
AI-assisted-by: claude-opus-5-5