-
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
Delegate storage address to Atree #2622
Delegate storage address to Atree #2622
Conversation
Currently, storage address is derived from StorageID(). In the future, some Atree values can be inlined so they don't have StorageID and address needs be derived differently. This commit delegates storage address to its internal Atree values, by calling Address().
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 5f84e78 Collapsed results for better readability
|
Codecov Report
@@ Coverage Diff @@
## master #2622 +/- ##
=======================================
Coverage 78.60% 78.60%
=======================================
Files 336 336
Lines 77869 77873 +4
=======================================
+ Hits 61207 61211 +4
Misses 14379 14379
Partials 2283 2283
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Is there maybe a way we can also prevent future uses of |
@turbolent Good point! 👍 It would be great to unexport fields in |
@fxamacker Sounds good! BTW, it's OK if there are breaking changes in the API, we can adjust Cadence accordingly, only breaking changes to the storage format (i.e. need for storage migration) are a concern |
Updates onflow/atree#292
Description
Currently, storage address is derived from
StorageID()
.In the future, some Atree values can be inlined so they don't have
StorageID
and address needs be derived differently.This PR delegates storage address to its internal Atree values, by calling
Address()
.master
branchFiles changed
in the Github PR explorer