mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 19:40:21 +00:00
The .ai writer kept only the image it read last, so a document that placed two images in turn decoded each again at every placement. The writer now keeps every image it reads during a save, by the address of its data and its MIME type, up to 256 MiB of samples and 256 images, with the image read last kept beside them when they are full. The file written is unchanged; the tests compare the whole output and warnings with the old one-image policy. Two 2048 x 2048 images placed in turn 25 times each, release build, thread CPU time, median of 7 alternating runs: 3774 ms with 50 decodes before, 748 ms with 2 decodes after.