-
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
Replace domain string with enum for AccountStorageMap key #3677
Replace domain string with enum for AccountStorageMap key #3677
Conversation
This commit replaces domain string, such as "storage", "public", "private", etc. with domain enum (integer) as the key for AccountStorageMap. Also, this uses CBOR to store the domain integer in shortest form. This optimization further improves storage efficiency of domain payloads of PR 3664.
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.
Nice!
This commit renames function convertKeyToDomain to convertAccountStorageMapKeyToStorageDomain.
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/combine-domain-payloads-and-domain-storage-maps commit cc95223 Collapsed results for better readability
|
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.
Nice!
0abfa9a
into
feature/combine-domain-payloads-and-domain-storage-maps
Updates #3584
Requires #3673
Description
This optimization further improves storage efficiency of domain payloads of PR #3664.
Thanks @turbolent 👍 for suggesting this optimization during PR review!
This PR replaces domain string, such as "storage", "public", "private", etc. with domain enum (integer) as the key for
AccountStorageMap
.Also, this uses CBOR to store the domain integer in shortest form.
master
branchFiles changed
in the Github PR explorer