Brotli compression of 9p filesystem #776
krishenriksen
started this conversation in
Ideas
Replies: 1 comment
-
Note that http can transparently use brotli, e.g. https://github.com/google/ngx_brotli If you pass the wasm object to the filesystem you could also use zstd. I did so recently for partfiles, and would also like to do this for the filesystem: df1a712 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Managed to get
ubuntu-9p-rootfs-flat
based on Ubuntu 16.04 down to only 66.7 MB, while having state be 24.6 MBThis is due to compressing the 9p filesystem using Brotli, with the following changes in
browser/filestorage.js
globalThis.BrotliDecode is derived from the attached script.
brotli_decode.js.zip
The build.sh is as follows
Beta Was this translation helpful? Give feedback.
All reactions