alonso.torres 2e03a9f44d 🐛 Carry no text override a switch's new variant already shows
A switch carried every text override both variants agree on, also those
whose value the new variant already shows. A copy text whose letters
equal the new variant's kept a content override, because the new
variant's paragraph names a typography the copy's does not; a copy sized
like the new variant's typography kept the size and so dropped that
typography. The switch now carries only the overrides both variants agree
on and where the copy differs from the new variant, and a carried
typography takes every unit it sets along.

Benchmark (scripts/bench-components, ms, lower 2.5% quantile):

|                             :world | :baseline |   :now |  :mean | :ratio |
|------------------------------------+-----------+--------+--------+--------|
|  deepest-edit-through-three-levels |    35.215 | 19.068 | 20.738 |   0.54 |
| edit-through-a-chain-of-dependents |    68.931 | 42.028 | 42.803 |   0.61 |
|         library-update-into-copies |    83.083 | 46.312 | 49.715 |   0.56 |
|        main-edit-among-many-shapes |     4.837 |  2.149 |  2.298 |   0.44 |
|           main-edit-into-10-copies |      1.79 |  1.002 |  1.023 |   0.56 |
|          main-edit-into-100-copies |    15.415 |  9.234 |  9.643 |    0.6 |
|         main-edit-into-1000-copies |   153.086 | 92.417 | 97.463 |    0.6 |
|         variant-switch-into-copies |    32.052 | 21.472 | 21.958 |   0.67 |

Common suite: 2367 tests, 0 failures.

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:47 +01:00
..