-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brotli compress/decompress of php.wasm + wp.data #66
Conversation
Thank you @krishenriksen! I know it took a lot of work to prepare this PR. At the same time, we may not need to handle the encoding manually – it seems like Content-encoding: br is natively supported by all major browsers. What do you think? |
That's true if you host the project with a native server handling node.js, and can support the mentioned br content encoding. However I don't know if the server utilizes maximum compression quality of 11 |
It looks like the default level is 6 in Nginx, 5 in Apache, and can be set to 11 in both. Aside, I wonder what’s the difference in file size and the compression/decompression time between 5 and 11 specifically for the .wasm and .data files used in this project |
Let's say you want to run this project without any server, which is my plan. You need to be able to compress, decompress in the browser, along with a few other things. |
@krishenriksen sorry for the radio silence, I've been traveling.
That sounds interesting, tell me more please! Do you mean you want to use it with the Decompressing in the browser might be slower even if the file size is lower. With a protocol-level compression you can use
This is to say that JS-level compression could cost more time than it saves – it would make sense to run some numbers before deciding one way or another.
I'm noodling on another use-case. Support for shipping extra files (customized WP builds or composer dependencies) without running the Also, I wonder if it would make sense to ship the decompressor itself as a slim WASM module 😆 |
This one seems stale so I’m going to close it. Happy to reopen any time there’s a renewed interest! |
Fixed devDependencies whitespace issue