mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 01:22:01 +00:00
Updating a main from its copy checked the copies the copy holds and the mains of those, but no deeper. A chain of mains, each holding the next through a copy that swapped its head away, could still end in the component being updated, which then nested inside itself. The check now follows the held components through every level. Benchmark (scripts/bench-components, lower quantile in ms): | world | baseline | now | ratio | |------------------------------------+----------+---------+-------| | deepest-edit-through-three-levels | 35.215 | 18.93 | 0.54 | | edit-through-a-chain-of-dependents | 68.931 | 38.249 | 0.55 | | library-update-into-copies | 83.083 | 44.715 | 0.54 | | main-edit-among-many-shapes | 4.837 | 2.166 | 0.45 | | main-edit-into-10-copies | 1.79 | 0.949 | 0.53 | | main-edit-into-100-copies | 15.415 | 9.513 | 0.62 | | main-edit-into-1000-copies | 153.086 | 102.177 | 0.67 | | variant-switch-into-copies | 32.052 | 20.994 | 0.65 | AI-assisted-by: claude-opus-5-5