-
Notifications
You must be signed in to change notification settings - Fork 137
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 new Atree API #2645
Use new Atree API #2645
Conversation
This commit updates Cadence to use new Atree API - Array.SlabID() - OrderedMap.SlabID() - SlabID - SlabIndex - etc. For more info, see Atree PRs: - onflow/atree#322 - onflow/atree#323 - onflow/atree#324
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/atree-register-inlining commit 9d592c2 Collapsed results for better readability
|
Currently, Array.SlabID() and OrderedMap.SlabID() are used as identifier to track resources, etc because slab IDs are guaranteed to unique. However, atree slab ID should be only used to retrieve slabs (registers) from storage. Also, when Atree register inlining is implemented in the future, some resources may not be stored in separate slabs, so they will not have slab IDs anymore. This commit uses Array.ValueID() and OrderedMap.ValueID() to uniquely identify resources.
…lueid Track resources with atree.ValueID instead of SlabID
Codecov Report
@@ Coverage Diff @@
## feature/atree-register-inlining #2645 +/- ##
================================================================
Coverage 78.60% 78.60%
================================================================
Files 337 337
Lines 77871 77861 -10
================================================================
- Hits 61209 61205 -4
+ Misses 14379 14375 -4
+ Partials 2283 2281 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Updates onflow/atree#292
Description
This PR updates Cadence to use new Atree API
The new Atree API is part of prep work for Atree register inlining work.
For more info, see Atree PRs:
SlabID
fields to prevent misuse atree#323master
branchFiles changed
in the Github PR explorer