rdkit-js icon indicating copy to clipboard operation
rdkit-js copied to clipboard

Handle compressed WASM file?

Open coleshaw opened this issue 2 years ago • 0 comments

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.

coleshaw avatar Oct 31 '23 12:10 coleshaw