mirror of
https://github.com/penpot/penpot.git
synced 2026-11-21 09:42:01 +00:00
A copy text can hold a typography file without a typography id, which the reference rule counts as a typography override. A switch carried it, and merging the overrides then dropped the reference, since no unit the typography sets was carried. The merged content showed the letters and styles of the new copy and differed from it only by nil typography keys, yet the switch wrote it and marked the content group touched with no text group behind it. A text content the switch would carry is now compared with the new copy's by its letters and styles, and one that differs in none is not carried. Benchmark (scripts/bench-components, ms, lower 2.5% quantile): | :world | :baseline | :now | :mean | :ratio | |------------------------------------+-----------+--------+--------+--------| | deepest-edit-through-three-levels | 35.215 | 19.246 | 20.089 | 0.55 | | edit-through-a-chain-of-dependents | 68.931 | 38.107 | 39.639 | 0.55 | | library-update-into-copies | 83.083 | 46.922 | 48.603 | 0.56 | | main-edit-among-many-shapes | 4.837 | 1.958 | 2.141 | 0.4 | | main-edit-into-10-copies | 1.79 | 0.99 | 1.079 | 0.55 | | main-edit-into-100-copies | 15.415 | 9.335 | 9.733 | 0.61 | | main-edit-into-1000-copies | 153.086 | 92.647 | 96.02 | 0.61 | | variant-switch-into-copies | 32.052 | 20.358 | 20.802 | 0.64 | AI-assisted-by: claude-opus-5-5