mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
Switching a swapped head back to the variant its main holds syncs it from the copy's root, which misses a move the copy's layout gave its parent: a grid copy with its own gap moves its child boards, and the restored head landed where the board would be without that gap. The restored head now takes the place its main shape has in its actual parent, unless it authors its geometry or a layout places it. Benchmark (lower quantile, ms): | world | baseline | now | mean | ratio | |------------------------------------+----------+---------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 23.030 | 27.413 | 0.65 | | edit-through-a-chain-of-dependents | 68.931 | 42.850 | 57.976 | 0.62 | | library-update-into-copies | 83.083 | 60.905 | 63.778 | 0.73 | | main-edit-among-many-shapes | 4.837 | 3.209 | 4.225 | 0.66 | | main-edit-into-10-copies | 1.79 | 1.162 | 1.511 | 0.65 | | main-edit-into-100-copies | 15.415 | 11.296 | 12.963 | 0.73 | | main-edit-into-1000-copies | 153.086 | 103.929 | 116.557 | 0.68 | | variant-switch-into-copies | 32.052 | 22.613 | 25.676 | 0.71 | AI-assisted-by: claude-opus-5-5