-
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
Update to new Atree API #2620
Update to new Atree API #2620
Conversation
This commit updates Cadence to use new Atree API - Array.Get() - OrderedMap.Get() - MaxInlineArrayElementSize() - MaxInlineMapKeySize() For more info, see Atree PRs: - onflow/atree#314 - onflow/atree#316 - onflow/atree#318
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 5f84e78 Collapsed results for better readability
|
Codecov Report
@@ Coverage Diff @@
## feature/atree-register-inlining #2620 +/- ##
===================================================================
- Coverage 78.60% 78.60% -0.01%
===================================================================
Files 336 336
Lines 77869 77867 -2
===================================================================
- Hits 61207 61205 -2
Misses 14379 14379
Partials 2283 2283
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Given that this update will require a state migration, we should maybe have this and the other atree-related changes target a feature branch. |
@turbolent Good point! 👍 I organized into breaking changes vs non-breaking changes. By separating out non-breaking changes, I'm hoping to keep the feature branch simpler and easier to review. PRs with breaking changes:
PRs with non-breaking changes (continue to target master): Does this work for you? |
@fxamacker That works, thank you! |
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:
Array.Get()
to returnValue
instead ofStorable
atree#316OrderedMap.Get()
to returnValue
instead ofStorable
atree#318master
branchFiles changed
in the Github PR explorer