mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A top copy turned with its parent board keeps that turn when the board is detached. Resizing the copy gives it a geometry of its own, and update main then pushed the board's turn into the main, while sync composes the copy with its parent's turn again: the copy turned twice. Update main now turns back the parent's turn for a top copy root with its own geometry, as it does for nested roots; under an unturned parent that is no turn. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 19.207 | 0.55 | | edit-through-a-chain-of-dependents | 68.931 | 37.719 | 0.55 | | library-update-into-copies | 83.083 | 47.009 | 0.57 | | main-edit-among-many-shapes | 4.837 | 2.17 | 0.45 | | main-edit-into-10-copies | 1.79 | 1.039 | 0.58 | | main-edit-into-100-copies | 15.415 | 10.179 | 0.66 | | main-edit-into-1000-copies | 153.086 | 101.906 | 0.67 | | variant-switch-into-copies | 32.052 | 20.838 | 0.65 | AI-assisted-by: claude-opus-5-5