mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A switch between identical grids carries a copy's cell overrides, with each child mapped to the new copy's child at its path. A kept swap takes that place with its own id, so the cells named the child the switch removes and the swap had no cell. The kept swap now keeps its own id in the cells. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+--------+---------+--------| | deepest-edit-through-three-levels | 35.215 | 21.301 | 21.507 | 0.6 | | edit-through-a-chain-of-dependents | 68.931 | 38.218 | 42.273 | 0.55 | | library-update-into-copies | 83.083 | 46.586 | 48.732 | 0.56 | | main-edit-among-many-shapes | 4.837 | 1.842 | 2.032 | 0.38 | | main-edit-into-10-copies | 1.79 | 0.924 | 0.968 | 0.52 | | main-edit-into-100-copies | 15.415 | 9.135 | 9.733 | 0.59 | | main-edit-into-1000-copies | 153.086 | 99.654 | 101.131 | 0.65 | | variant-switch-into-copies | 32.052 | 20.939 | 22.049 | 0.65 | Common suite: 2379 tests, 1 failure, the known insufficient-random-coverage of random-stale-library-compositions (detach attempted once in 20 programs). AI-assisted-by: claude-opus-5-5