mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 13:32:45 -05:00
replace_runs reserved old.len() + 2 * changes.len() runs. For 2,000 numbers that is 4,001 runs on every preview change, while push merges neighbors with equal style and the output usually keeps about old.len() runs. The vector now starts at old.len() and grows when formatting splits a run. This changes only the initial allocation, so no test can fail without it; the existing long-text and styled-output tests still pass.