mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A copy child of a copy can be moved, which marks its geometry as its own. Switching it to another variant keeps the place it was moved to, but the new head only has the swap override, so the next sync brought it back to the place its position in the main gives it. When the switch keeps a first corner that the head's position would not give it inside its copy parent, the new head's geometry is marked as its own. The model expects that place as authored. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 18.478 | 0.52 | | edit-through-a-chain-of-dependents | 68.931 | 37.022 | 0.54 | | library-update-into-copies | 83.083 | 45.307 | 0.55 | | main-edit-among-many-shapes | 4.837 | 2.118 | 0.44 | | main-edit-into-10-copies | 1.79 | 0.975 | 0.54 | | main-edit-into-100-copies | 15.415 | 9.505 | 0.62 | | main-edit-into-1000-copies | 153.086 | 96.857 | 0.63 | | variant-switch-into-copies | 32.052 | 19.846 | 0.62 | AI-assisted-by: claude-opus-5-5