mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-15 14:43:28 +00:00
LoadFetch::blob_bounded decompressed a new blob up to max_blob_bytes and only then charged it against max_total_bytes. Successful blobs are retained, so several distinct, highly compressible blobs each allocated a full max_blob_bytes before the total was checked. A new blob may now inflate only to what the total budget has left. The browser build loaded native documents with the desktop defaults (1 GiB a blob, 16 GiB in all), far beyond a wasm32 instance's 4 GiB of linear memory that the editor also uses. On wasm32 the defaults are now 512 MiB a blob and 1 GiB in all.