mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A board below its minimum size keeps the scale of a resize in its transform: a 0.01 px nested copy in a turned main resized from 140 to 120 high stored a transform scaled by 6/7. A full sync turned that copy's children by the raw transform of the target, so they came out scaled by 6/7, while the settled sync left them at their size. Turning a subtree to match a target takes only the directions of the target's axes; the lengths are left to constraints. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 19.727 | 0.56 | | edit-through-a-chain-of-dependents | 68.931 | 38.407 | 0.56 | | library-update-into-copies | 83.083 | 48.07 | 0.58 | | main-edit-among-many-shapes | 4.837 | 2.187 | 0.45 | | main-edit-into-10-copies | 1.79 | 1.058 | 0.59 | | main-edit-into-100-copies | 15.415 | 10.201 | 0.66 | | main-edit-into-1000-copies | 153.086 | 96.625 | 0.63 | | variant-switch-into-copies | 32.052 | 19.74 | 0.62 | AI-assisted-by: claude-opus-5-5