mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-17 07:25:16 +00:00
A ZIP save encoded the thumbnail and the 1024 px composite preview as PNG on the calling thread before any tile was compressed. The composite alone is a ~200 ms single-threaded deflate on a 36 MP document, about 40 % of a full save. The previews are now encoded on their own threads while the document is collected and its new objects are compressed on all cores; the bundle is assembled afterwards in the same order, so the bytes are unchanged. Directory saves encode them up front as before. wasm stays sequential. bench_export, 36 MP, 3 layers, 16 interleaved rounds of 7 reps (median of medians / min), Ryzen 16 threads, Linux: .pcraft 517.9 / 471.1 ms -> 319.3 / 287.8 ms (-38 %) .pcraft with cache 360.1 / 334.1 ms -> 277.5 / 268.3 ms (-23 %) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>