alonso.torres 30acd12f98 🐛 Index an empty paragraph's run before adding it to the runs
The letters of a text keep, for a paragraph with no letters, the index of
its run among the runs. It was counted after the run was added to the
transient list, so it pointed one past the run: at the next paragraph's
run, or past the end when the empty paragraph came last. Comparing the
styles of such a copy with its main failed, and importing the Penpot
Design System template stopped in the migration that recomputes old
text overrides.

Benchmark (lower quantile, ms):

| world                              | baseline |     now |    mean | ratio |
|------------------------------------+----------+---------+---------+-------|
| deepest-edit-through-three-levels  |   35.215 |  21.783 |  24.854 |  0.62 |
| edit-through-a-chain-of-dependents |   68.931 |  47.467 |  53.332 |  0.69 |
| library-update-into-copies         |   83.083 |  70.859 | 102.070 |  0.85 |
| main-edit-among-many-shapes        |    4.837 |   3.322 |   3.654 |  0.69 |
| main-edit-into-10-copies           |    1.79  |   1.200 |   1.572 |  0.67 |
| main-edit-into-100-copies          |   15.415 |  11.457 |  18.418 |  0.74 |
| main-edit-into-1000-copies         |  153.086 | 109.634 | 125.910 |  0.72 |
| variant-switch-into-copies         |   32.052 |  30.110 |  35.890 |  0.94 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:49 +01:00
..
2026-11-10 20:21:16 +01:00
2026-09-29 09:07:34 +02:00
2026-03-11 15:24:40 +01:00