-
Notifications
You must be signed in to change notification settings - Fork 138
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
Use atree orderd map's Has function to test for existence #2618
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 79f44a1 Collapsed results for better readability
|
Codecov Report
@@ Coverage Diff @@
## master #2618 +/- ##
==========================================
- Coverage 78.60% 78.59% -0.01%
==========================================
Files 336 336
Lines 77866 77858 -8
==========================================
- Hits 61206 61196 -10
Misses 14379 14379
- Partials 2281 2283 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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
Triggered by onflow/atree#318: Atree's ordered map provides a high-level
Has
function to check for key existence. Use it instead ofGet
to prevent a future unnecessary value conversion in the case where the key exists.master
branchFiles changed
in the Github PR explorer