-
Notifications
You must be signed in to change notification settings - Fork 171
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
Support for compression/decompression library #545
Comments
Yes! I've been thinking about wrapping |
Just my two cents on the subject. |
Good point. There is already fflate bundled in, because it's a dependency of the ConpressionStream polyfill. Perhaps we could just expose it. The reason I thought about libarchive is that in order to implement "tjs bundle" I need to download esbuild which comes in tar.gz form, so I'd need tar support too. Alternatively I could just re-pack it and that's it... |
I would have preferred a native implementation, but that is specific for my use case. For general purpose I think exposing I was just wondering, esbuild has a wasm version: https://www.npmjs.com/package/esbuild-wasm |
I thought of that but wasm3 is not very fast and I'm afraid we might not have all the APIs necessary for it to work, but I also haven't tried it yet. |
I am just testing it, it does not work because of |
The hanks for giving it a try! |
At this point in time, there is no support for compression/decompression in txiki for what I can tell.
Users can bundle some like pure JS implementation like pako, but since quickjs is not exactly fast, that has a huge impact on performance. Binding
zlib
directly would be much more preferable from my point of view.I am probably going to add it as a module myself, but even if the external module proposal is not mainlined I think there is a good case for some compression library to be shipped with txiki.
The text was updated successfully, but these errors were encountered: