mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
Reflecting a shape can leave a turned descendant's flip flags in another decomposition of the same transform (rotation 270 with a vertical flip for rotation 90 with a horizontal one), and a later sync of the copy rewrites them. The transform settles the descendants of a reflected copy head from its copy root so both agree. A plain copy shape with children, such as the nested head a main detached, was left out. Any reflected copy shape with children settles from its copy root. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 19.748 | 0.56 | | edit-through-a-chain-of-dependents | 68.931 | 42.466 | 0.62 | | library-update-into-copies | 83.083 | 51.313 | 0.62 | | main-edit-among-many-shapes | 4.837 | 2.445 | 0.51 | | main-edit-into-10-copies | 1.79 | 0.988 | 0.55 | | main-edit-into-100-copies | 15.415 | 9.629 | 0.62 | | main-edit-into-1000-copies | 153.086 | 100.363 | 0.66 | | variant-switch-into-copies | 32.052 | 21.275 | 0.66 | AI-assisted-by: claude-opus-5-5