-
Notifications
You must be signed in to change notification settings - Fork 140
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
Refactor memory kinds and memory usages #1667
Conversation
…/cleanup-memorykinds
@@ -382,106 +382,6 @@ func (testMemoryError) Error() string { | |||
return "memory limit exceeded" | |||
} | |||
|
|||
func TestMemoryMeteringErrors(t *testing.T) { |
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.
Moved to the relevant runtime_memory_metering_test.go
file
Codecov Report
@@ Coverage Diff @@
## master #1667 +/- ##
==========================================
- Coverage 76.50% 76.49% -0.02%
==========================================
Files 291 291
Lines 61019 60977 -42
==========================================
- Hits 46684 46645 -39
+ Misses 12723 12722 -1
+ Partials 1612 1610 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 37aea92 Results
|
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.
I like how you replaced UseConstantMemory with global constants.
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.
🧹
Description
This PR mostly does some cleanup on the memory kinds and usages. This inlude:
MemoryKindCadenceDictionarySize
, as it is not used at FVM (zero weight)common.UseConstantMemory()
is no longer used, and hence removed.master
branchFiles changed
in the Github PR explorer