mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 13:33:51 +00:00
Texts::read copied the stories, the default styles, the paragraph defaults and the frames out of the parsed text document and then dropped the document. It now looks every required path up first, reads the styles, Kinsoku sets and fonts from the whole document, and then moves those four parts out. Every document that read before reads to equal values, and every one that did not still does not. Reading a synthetic editing copy with 2,000 point-type stories (1.8 MB) takes a median of 60 ms of CPU time instead of 109 ms (7 alternating runs each, one process). The gain matters on documents with a lot of type.