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

W3 new store #2 #1689

Merged
merged 25 commits into from
May 22, 2023
Merged

W3 new store #2 #1689

merged 25 commits into from
May 22, 2023

Conversation

maurolacy
Copy link
Contributor

@maurolacy maurolacy commented May 17, 2023

Alternative to #1682 on making the cache work.

Main idea is to store an Engine, which is Clone in the cache, instead of a Store that is not, and reconstruct the store on the consumer side.

Seems to be working, with behaviour and performance similar to the main branch.
Still not sure why it's working (and if it's really stable). I mean, in theory it should be possible to build the entire thing (engine plus store) on the consumer side, and cache only the module like before, but for some weird / unknown reason that approach isn't working anymore.

@maurolacy maurolacy self-assigned this May 17, 2023
@maurolacy maurolacy marked this pull request as ready for review May 17, 2023 06:48
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very very nice!

Before the Wasmer3 upgrade, we did the same implicitly. A Module stored the Store which stored the Engine. If this change allows us to get back to the current behaviour with the new Wasmer, that's great.

packages/vm/src/wasm_backend/mod.rs Outdated Show resolved Hide resolved
packages/vm/src/modules/sized_module.rs Outdated Show resolved Hide resolved
packages/vm/Cargo.toml Outdated Show resolved Hide resolved
maurolacy and others added 2 commits May 22, 2023 11:59
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
@webmaster128 webmaster128 merged commit ecfafe4 into w3 May 22, 2023
@webmaster128 webmaster128 deleted the w3-new-store-2 branch May 22, 2023 13:09
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

Successfully merging this pull request may close these issues.

2 participants