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

Improve WASM loading performance #2654

Closed
Nitvex opened this issue May 23, 2023 · 2 comments · Fixed by #4893
Closed

Improve WASM loading performance #2654

Nitvex opened this issue May 23, 2023 · 2 comments · Fixed by #4893
Assignees
Labels
feature request Priority: High Test Cases Written Test cases has been written for that issue

Comments

@Nitvex
Copy link
Collaborator

Nitvex commented May 23, 2023

Background
At the moment, WASM is embed as base64 string into JS-file. This needs to be changed to speed up WASM load.

Solution
Extract .wasm part from JS to separate file. This would reduce the file size and allow browser to cache WASM and speed up future loads.
Related Indigo issue: epam/Indigo#877
#185972429

Need to check integration with backend after indigo ticket will be completed.

@AlexeyGirin
Copy link
Collaborator

No test cases needed for that particular issue

rrodionov91 added a commit that referenced this issue Jun 25, 2024
- added two ketcher-standalone builds: with base64 indigo wasm and with separate wasm file
rrodionov91 added a commit that referenced this issue Jun 25, 2024
- added two ketcher-standalone builds: with base64 indigo wasm and with separate wasm file
@rrodionov91 rrodionov91 linked a pull request Jun 26, 2024 that will close this issue
9 tasks
rrodionov91 added a commit that referenced this issue Jun 26, 2024
- added two ketcher-standalone builds: with base64 indigo wasm and with separate wasm file
- updated indigo to 2.22.0-rc.2
@AlexeyGirin AlexeyGirin self-assigned this Jul 4, 2024
@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Jul 5, 2024

Verified.
Full loading has become 13% faster (1 second better) on my machine
Minimal necessary loading time - 57% faster (3.5 seconds better) on my machine
image

Ketcher Version 2.22.0-rc.2 Build at 2024-06-26; 13:36:01
Indigo Version 1.22.0-dev.2.0-gd11d8c526-wasm32-wasm-clang-19.0.0
Win 10
Chrome Version 126.0.6478.127 (Official Build) (64-bit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Priority: High Test Cases Written Test cases has been written for that issue
Projects
Status: Ready for testing
Development

Successfully merging a pull request may close this issue.

4 participants