mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
A copy that turns a nested copy turns the children of that nested copy with it. When a resize deeper in a child's chain marks it with the geometry group, the variant switch compares the old child with its ref to tell whether the copy authored its geometry. It turned the ref only into the frame of the copy root, so the turn the child inherits from its nested parent looked authored: the switch placed the child at its main's unturned offset and marked it touched. `generate-keep-touched` also turns the ref into the frame of the old child's parent, so only a turn the child authors itself carries. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+--------+--------+--------| | deepest-edit-through-three-levels | 35.215 | 20.988 | 21.212 | 0.6 | | edit-through-a-chain-of-dependents | 68.931 | 41.108 | 42.793 | 0.6 | | library-update-into-copies | 83.083 | 45.86 | 47.865 | 0.55 | | main-edit-among-many-shapes | 4.837 | 2.114 | 2.268 | 0.44 | | main-edit-into-10-copies | 1.79 | 1.004 | 1.024 | 0.56 | | main-edit-into-100-copies | 15.415 | 9.828 | 9.983 | 0.64 | | main-edit-into-1000-copies | 153.086 | 98.452 | 99.954 | 0.64 | | variant-switch-into-copies | 32.052 | 20.156 | 21.317 | 0.63 | AI-assisted-by: claude-opus-5-5