Files
vectorcraft/docs
dotCooCoo 34587834ac SVG import: an image's bytes are hashed for its key once per import
Importer::image hashed the whole image buffer for its key on every <image> and <use> that showed it, and doc.images then kept only the first result. Every use of one data URL or linked file gets the same buffer, so the key is now kept for that buffer, by its address, for the rest of the import, with the buffer held so the address is not reused. Keys, stored images, links and warnings are unchanged; the tests compare the whole document with an import that hashes every image. With one 3.4 MB PNG data URL shown by 500 <use> elements, the import took a median 1,883 ms of thread CPU time when every image was hashed and 28 ms with the keys kept.
2026-11-17 10:28:46 -08:00
..
…