mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 17:50:38 +00:00
When sync turns a copy parent, it turns and moves the parent's whole subtree, geometry overrides included, by the parent's center. When the same sync also resizes the parent, that center shift carries half the resize, so a child with its own geometry moved as if its constraint were center: a top-constrained child ended 10 px above its place after an update main turned its parent back and shrank it by 20 px. A parent that is turned and resized at once now resizes its subtree through the children's constraints first, then turns and moves it as one piece, as the main's subtree is placed into a copy. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 23.162 | 0.66 | | edit-through-a-chain-of-dependents | 68.931 | 43.751 | 0.63 | | library-update-into-copies | 83.083 | 52.008 | 0.63 | | main-edit-among-many-shapes | 4.837 | 2.897 | 0.60 | | main-edit-into-10-copies | 1.79 | 1.103 | 0.62 | | main-edit-into-100-copies | 15.415 | 10.807 | 0.70 | | main-edit-into-1000-copies | 153.086 | 105.726 | 0.69 | | variant-switch-into-copies | 32.052 | 24.017 | 0.75 | AI-assisted-by: claude-opus-5-5