mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
A copy in a flex main kept its margin type through a reset, since its placement belongs to its position. Nesting it out of the layout cleared its layout-item data, and the relocation marked a margin override, although the copy now matched its main. Clearing layout-item data when a shape leaves a layout is a consequence of the move, not an edit of those attributes, so it marks no override. Benchmark (scripts/bench-components, lower quantile in ms): | world | baseline | now | ratio | |------------------------------------+----------+--------+-------| | deepest-edit-through-three-levels | 35.215 | 18.992 | 0.54 | | edit-through-a-chain-of-dependents | 68.931 | 39.094 | 0.57 | | library-update-into-copies | 83.083 | 46.864 | 0.56 | | main-edit-among-many-shapes | 4.837 | 2.236 | 0.46 | | main-edit-into-10-copies | 1.79 | 0.941 | 0.53 | | main-edit-into-100-copies | 15.415 | 9.524 | 0.62 | | main-edit-into-1000-copies | 153.086 | 95.507 | 0.62 | | variant-switch-into-copies | 32.052 | 22.002 | 0.69 | AI-assisted-by: claude-opus-5-5