mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 13:33:51 +00:00
The writer kept every style text it checked, with its parse, until the save ended, including texts the reader does not accept. A gradient style placed on each object's outline is often a different text per object, so memory grew with the number of objects checked. The first 4,096 texts, up to 8 MiB of text, are kept parsed. Past that, only the last text checked is kept, so the brush check that follows an object's check reuses its parse, and other texts are parsed again when checked. The written file is unchanged.