Skip to content
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

Use minimal parquet-wasm build for bundle size #462

Open
kylebarron opened this issue Apr 10, 2024 · 1 comment
Open

Use minimal parquet-wasm build for bundle size #462

kylebarron opened this issue Apr 10, 2024 · 1 comment

Comments

@kylebarron
Copy link
Member

We currently use the default parquet-wasm build, which gzipped is 1.4MB. If we use a minimal parquet-wasm build with only the reader and zstd features, we can get down to 709KB. If we additionally use brotli compression, we can get down to 491K. Then we can use https://github.com/foliojs/brotli.js to decompress it on the frontend.

@kylebarron
Copy link
Member Author

kylebarron commented Apr 10, 2024

It looks like using brotli.js would be unproductive because brotli.js needs a separate dictionary, which is quite large. But 700KB reduction in bundle size could possibly still be worth the increase in complexity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant