-
Notifications
You must be signed in to change notification settings - Fork 402
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
Upgrade WasmVM to v0.13.0 #358
Conversation
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 good, as soon as broken CI test fixed.
One idea for a follow up
@@ -42,6 +42,10 @@ const InstanceCost uint64 = 40_000 | |||
// CompileCost is how much SDK gas we charge *per byte* for compiling WASM code. | |||
const CompileCost uint64 = 2 | |||
|
|||
// contractMemoryLimit is the memory limit of each contract execution (in MiB) | |||
// constant value so all nodes run with the same limit. | |||
const contractMemoryLimit = 32 |
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.
Let's make this a param in a later PR.
If not too much work, we can add that as a param (with default 32 MB) in a separate PR, but include that in the 0.14 release.
I am happy to merge this first and test it manually before that addition. (It can come later as well)
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.
After reflection, that params issue is part of #202
Let's just do that with everything else
Codecov Report
@@ Coverage Diff @@
## master #358 +/- ##
==========================================
+ Coverage 69.64% 69.73% +0.08%
==========================================
Files 28 28
Lines 2425 2425
==========================================
+ Hits 1689 1691 +2
+ Misses 618 617 -1
+ Partials 118 117 -1
|
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.
This PR updates the Go code, but not libwasmvm_muslc.a
. Dockerfile
needs to be updated as well.
Ah, I will check the Dockerfile. Thanks for the review |
Interesting the .a file doubled in size from 0.12 to 0.13 from ~30MB to ~60MB Not a major issue, but interesting if you know why
|
One part of it is probably that we have the (unused) cranelift compiler in our dependencies now. This is a consequence of how Wasmer packages and features are organized now. |
Ah, that makes sense. Final docker image grows from 224MB to 237MB, so no real issue there. Just an oddity I wanted to flag. |
Upgrade WasmVM to v0.13.0