mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
A main that nests a variant copy can swap a child of it for another component and override that component's fill. A copy of the main that switched its nested copy took the touched groups of the child's whole ref chain and compared them with the variant's slot, so it carried the fill authored over the swapped component onto the new variant's board. A child whose ref chain passes through a swap made by a main now has no counterpart in the new variant, and nothing carries into it. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+---------+--------+--------| | deepest-edit-through-three-levels | 35.215 | 19.723 | 20.106 | 0.56 | | edit-through-a-chain-of-dependents | 68.931 | 36.982 | 39.628 | 0.54 | | library-update-into-copies | 83.083 | 44.331 | 46.283 | 0.53 | | main-edit-among-many-shapes | 4.837 | 1.969 | 2.159 | 0.41 | | main-edit-into-10-copies | 1.79 | 1.05 | 1.078 | 0.59 | | main-edit-into-100-copies | 15.415 | 10.02 | 10.27 | 0.65 | | main-edit-into-1000-copies | 153.086 | 100.392 | 102.54 | 0.66 | | variant-switch-into-copies | 32.052 | 19.796 | 20.354 | 0.62 | AI-assisted-by: claude-opus-5-5