Skip to content

Handle compressed WASM file? #404

Open

Description

@coleshaw

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions