pkg/settings/cresettings: add/use WASM limits#1629
Conversation
|
1dea7be to
446bce6
Compare
| } | ||
|
|
||
| func NewModule(modCfg *ModuleConfig, binary []byte, opts ...func(*ModuleConfig)) (*module, error) { | ||
| func NewModule(ctx context.Context, modCfg *ModuleConfig, binary []byte, opts ...func(*ModuleConfig)) (*module, error) { |
There was a problem hiding this comment.
I tried to find a way to avoid breaking this signature, but there's not an elegant way around it without just introducing a new func to use instead. Happy to do that instead if folks prefer 🤷
There was a problem hiding this comment.
I suppose another variation would be to extract the binary size checks to be pre-construction in order to avoid the issue and simplify this implementation. The fact that we already check the binary size elsewhere suggests that we could simplify a bit too.
446bce6 to
5f92ece
Compare
5f92ece to
2f8dd20
Compare
There was a problem hiding this comment.
⚠️ Performance Alert ⚠️
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.
| Benchmark suite | Current: 4f51003 | Previous: 1dea7be | Ratio |
|---|---|---|---|
BenchmarkKeystore_Sign/nop/in-process |
742.6 ns/op |
367.6 ns/op |
2.02 |
This comment was automatically generated by workflow using github-action-benchmark.
https://smartcontract-it.atlassian.net/browse/CRE-614
Added:
Supports: