mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A switch carried a child's :x or :y when the old main's child and the new copy's child shared the coordinate, though one lies in main space and the other in copy space. A turned copy whose child inherits a resize could then switch to a child whose :y disagreed with its selrect and points, touched for a place it never authored. The switch now keeps the new variant's position and carries only a size. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+--------+--------+--------| | deepest-edit-through-three-levels | 35.215 | 19.545 | 20.219 | 0.56 | | edit-through-a-chain-of-dependents | 68.931 | 37.535 | 39.465 | 0.54 | | library-update-into-copies | 83.083 | 52.071 | 53.432 | 0.63 | | main-edit-among-many-shapes | 4.837 | 2.116 | 2.202 | 0.44 | | main-edit-into-10-copies | 1.79 | 1.055 | 1.079 | 0.59 | | main-edit-into-100-copies | 15.415 | 9.013 | 9.777 | 0.58 | | main-edit-into-1000-copies | 153.086 | 94.616 | 97.597 | 0.62 | | variant-switch-into-copies | 32.052 | 23.127 | 23.774 | 0.72 | AI-assisted-by: claude-opus-5-5