alonso.torres 2c918644d1 🐛 Lay out a resized copy's subtree without its parent's layout
A sync that turns and resizes a copy lays out the copy's main subtree at
the copy's size. That layout climbed to the main's parent: in a grid
whose duplicated child had no cell yet, laying out the grid crashed.

The subtree is laid out under the root, so only its own layouts run and
no layout of the main's parent owns the copy's size.

Benchmark (scripts/bench-components, ms, lower 2.5% quantile):

| world                              | baseline |     now | ratio |
|------------------------------------+----------+---------+-------|
| deepest-edit-through-three-levels  |   35.215 |  19.675 |  0.56 |
| edit-through-a-chain-of-dependents |   68.931 |  43.856 |  0.64 |
| library-update-into-copies         |   83.083 |  45.859 |  0.55 |
| main-edit-among-many-shapes        |    4.837 |   2.118 |  0.44 |
| main-edit-into-10-copies           |     1.79 |   1.051 |  0.59 |
| main-edit-into-100-copies          |   15.415 |   9.265 |  0.60 |
| main-edit-into-1000-copies         |  153.086 |  92.142 |  0.60 |
| variant-switch-into-copies         |   32.052 |  21.434 |  0.67 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:46 +01:00
..