mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A head in a main turned 45 degrees switched to a wider variant. The new head was placed at the old one's untransformed top-left and turned about its own centre, so it landed off the old head's first corner, while its copies follow the main at their first corner through sync. The turned new head now moves so its first corner meets the old head's, the place a turned or flipped swap takes in a copy. Switching and then turning the main gives the same result as turning and then switching. Benchmark (scripts/bench-components, lower quantile in ms): | world | baseline | now | ratio | |------------------------------------+----------+--------+-------| | deepest-edit-through-three-levels | 35.215 | 20.289 | 0.58 | | edit-through-a-chain-of-dependents | 68.931 | 39.832 | 0.58 | | library-update-into-copies | 83.083 | 45.839 | 0.55 | | main-edit-among-many-shapes | 4.837 | 2.079 | 0.43 | | main-edit-into-10-copies | 1.79 | 0.933 | 0.52 | | main-edit-into-100-copies | 15.415 | 9.056 | 0.59 | | main-edit-into-1000-copies | 153.086 | 99.369 | 0.65 | | variant-switch-into-copies | 32.052 | 21.489 | 0.67 | AI-assisted-by: claude-opus-5-5