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

Handle compressed WASM file? #404

Open
coleshaw opened this issue Oct 31, 2023 · 0 comments
Open

Handle compressed WASM file? #404

coleshaw opened this issue Oct 31, 2023 · 0 comments

Comments

@coleshaw
Copy link

Is your feature request related to a problem? Please describe.

Given the size of the RDKit WASM file, I was wondering if it's possible to serve a compressed version, either gzip or brotli? I've tried doing this with gzip in an effort to reduce our application loading time, and Chrome / RDKit JS will complain that it cannot compile a compressed WASM file.

I'm not clear on performance aspects of WASM and compiling while streaming -- is compression a viable way to get overall better page load performance, or does the unpacking / compiling negate the network latency gains? Is there a way to load a compressed WASM file directly?

Describe the solution you'd like

A way to load / compile a compressed version of the RDKit WASM library "out of the box", that would be faster than the current method, would be ideal! I'm not sure if that depends on browsers instead of this library, though.

Describe alternatives you've considered

Open to suggestions on other ways to improve the page load speed. Right now we're just loading in the JS and WASM files directly.

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