-
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
Delegate Cadence composite Storable()
to Atree
#2621
Delegate Cadence composite Storable()
to Atree
#2621
Conversation
Currently, Cadence ArrayValue, CompositeValue, and DictionaryValue creates atree.Storable directly from StorageID of its Atree values. In the future, some Atree values can be inlined so they don't have StorageID, and Atree values need to handle Storable depending on maxInlineSize and other factors. This commit delegates Cadence composite values' Storable() to its internal Atree values. So future changes to Atree values and their storables don't break Cadence.
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 5f84e78 Collapsed results for better readability
|
Codecov Report
@@ Coverage Diff @@
## master #2621 +/- ##
=======================================
Coverage 78.60% 78.60%
=======================================
Files 336 336
Lines 77869 77869
=======================================
Hits 61207 61207
Misses 14379 14379
Partials 2283 2283
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Updates onflow/atree#292
Description
Currently, Cadence
ArrayValue
,CompositeValue
, andDictionaryValue
createsatree.Storable
directly fromStorageID
of its Atree values.In the future, some Atree values can be inlined so they don't have
StorageID
, and Atree values need to handleStorable
depending onmaxInlineSize
and other factors.This PR delegates Cadence composite values'
Storable()
to its internal Atree values. So future changes to Atree values and their storables won't break Cadence.master
branchFiles changed
in the Github PR explorer