Closed Bug 1545131 Opened 6 years ago Closed 3 years ago

compress wasm alt-data file

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: luke, Assigned: yury)

References

Details

Attachments

(1 file)

wasm's alt-data is quite compressible (~3x) with gzip, producing a file smaller than the original (uncompressed) .wasm in my local measurements. It's also pretty easy to integrate into the existing stream consumer code added by bug 1487113.

Without this, web.autocad.com's .wasm's alt-data falls outside the http cache's individual cache-file quota.

Summary: compress alt-data → compress wasm alt-data file
Type: defect → enhancement

To wit, this compresses a 148mb cache file (code + metadata) to 32mb, which does get successfully stored in the cache.

Attachment #9059137 - Attachment description: Bug 1545131 - compress wasm alt data entries → Bug 1545131 - compress wasm alt data entries (r=jandem)
Priority: -- → P2
Assignee: nobody → luke
Status: NEW → ASSIGNED
OS: Unspecified → All
Priority: P2 → P3
Hardware: Unspecified → All

Assigning to Yury since he's looking at caching but really we should be discussing specifically what the best path forward is, once the basic caching code has landed.

Assignee: mail → ydelendik
Pushed by ydelendik@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d6adcf77b5a compress wasm alt data entries (r=jandem)
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: