mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
A switch carries the touched attributes of the old copy into the new one, skipping those whose values are already equal. Geometry was compared exactly: a turn the new copy already showed, up to float noise in its transform, was carried and marked as a geometry override the old copy did not author. Geometry attributes compare within their precision, as the check that both variants share a value already does. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 18.972 | 0.54 | | edit-through-a-chain-of-dependents | 68.931 | 37.79 | 0.55 | | library-update-into-copies | 83.083 | 46.453 | 0.56 | | main-edit-among-many-shapes | 4.837 | 2.175 | 0.45 | | main-edit-into-10-copies | 1.79 | 0.927 | 0.52 | | main-edit-into-100-copies | 15.415 | 8.87 | 0.58 | | main-edit-into-1000-copies | 153.086 | 89.777 | 0.59 | | variant-switch-into-copies | 32.052 | 20.379 | 0.64 | AI-assisted-by: claude-opus-5-5