mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A switch that carries an authored orientation marks a geometry override when the head's turn differs from its new main's placement. Inside a copy the placement left out the turn of the head's parent: a head whose near main's half turn cancelled its turned copy parent's showed the main's own turn, looked unchanged and lost its override. The placement includes the parent's turn and flips inside a copy too. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 19.589 | 0.56 | | edit-through-a-chain-of-dependents | 68.931 | 39.264 | 0.57 | | library-update-into-copies | 83.083 | 48.997 | 0.59 | | main-edit-among-many-shapes | 4.837 | 2.377 | 0.49 | | main-edit-into-10-copies | 1.79 | 1.031 | 0.58 | | main-edit-into-100-copies | 15.415 | 9.145 | 0.59 | | main-edit-into-1000-copies | 153.086 | 97.525 | 0.64 | | variant-switch-into-copies | 32.052 | 21.316 | 0.67 | AI-assisted-by: claude-opus-5-5