-
Notifications
You must be signed in to change notification settings - Fork 140
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
Eagerly normalize String and Character values at construction time #2781
Eagerly normalize String and Character values at construction time #2781
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/stable-cadence commit 6a66260 Collapsed results for better readability
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature/stable-cadence #2781 +/- ##
=======================================================
Coverage 79.66% 79.66%
=======================================================
Files 342 342
Lines 80653 80654 +1
=======================================================
+ Hits 64255 64256 +1
Misses 14094 14094
Partials 2304 2304
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
I like this version more tbh. Eventually this guarantees what is stored will be the same all the time. |
I also like this version better: Though it has a performance overhead, it's predictable and its implementation is much simpler compared to #2777 (which was also incomplete and still would need more work in Cadence and atree to meter the lazy allocations) |
Nice! |
Work towards #2752
Alternative to #2777
Description
Instead of lazily normalizing, if needed, always eagerly normalize at construction time.
master
branchFiles changed
in the Github PR explorer