-
Notifications
You must be signed in to change notification settings - Fork 346
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
Cache Artifacts directly instead of their serialization #666
Conversation
bbed9cf
to
5996df1
Compare
5996df1
to
b2bce53
Compare
68866de
to
b7110d1
Compare
b2bce53
to
a428d83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nicer, still wondering what was wrong with storing Modules
let store = make_store_headless(Some(memory_limit)); | ||
let new_module = unsafe { Module::deserialize(&store, &serialized_artifact) }?; | ||
let new_module = Module::from_artifact(&store, Arc::clone(artifact)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, we just update reference count, clone is super cheap
Updated title and description, as this was outdated. |
a428d83
to
355da47
Compare
355da47
to
0d1c158
Compare
7916272
to
966493b
Compare
82c5be5
to
8703431
Compare
966493b
to
f868f12
Compare
This cannot work, see wasmerio/wasmer#1943 |
Ths creates a new store for every instance. This is needed for metering as well as consistency with file system cache.