-
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
Add getter for field count to composite value #3002
Add getter for field count to composite value #3002
Conversation
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.
What is the use case for this?
Edit: nvm i just saw the summary
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit ddc2ad9 Collapsed results for better readability
|
Description
Just like
DictionaryValue.Count
exposes the number of elements in the dictionary, add a similar getter toCompositeValue
which returns the number of stored fields in the composite value.Needed for onflow/flow-go#5204
master
branchFiles changed
in the Github PR explorer