-
Notifications
You must be signed in to change notification settings - Fork 20
Fixes in List::from_parts #91
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
Conversation
Signed-off-by: Nikhil Sharma <[email protected]>
…than capacity N Signed-off-by: Nikhil Sharma <[email protected]>
|
@michaelsproul Could you please take a look at the changes and share your review? |
|
Yep will do when I'm back at work on monday |
michaelsproul
left a comment
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.
Can you also run the benchmarks before/after this change to confirm no regressions from the recalculation of depth? Thanks
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #91 +/- ##
==========================================
- Coverage 70.38% 70.26% -0.12%
==========================================
Files 22 22
Lines 1263 1268 +5
==========================================
+ Hits 889 891 +2
- Misses 374 377 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…parts Signed-off-by: Nikhil Sharma <[email protected]>
|
Ran all benchmarks, and they show no significant performance difference Benchmark Comparison ResultsSummaryBenchmarks were run before and after the change to verify no performance regression from depth recalculation in Conclusion: Benchmarks show no significant performance regression from the depth recalculation change. Most benchmarks are within ±5% (measurement noise), with a few showing minor variations (±3-10%) that are consistent with normal benchmark variance. The depth recalculation ( Pop Front Benchmarks
Rebase Benchmarks
Ssz Benchmarks
Tree Hash Root Benchmarks
|
|
@michaelsproul Quick ping on this PR |
|
I'm reluctant to merge something with a 10% performance penalty. In my view that is quite a lot, and these functions are on the critical path inside Lighthouse. If a PR were opened with a 10% performance benefit I would probably be inclined to merge it, even if it made the API slightly less ergonomic. I think maybe the original issue is a bit of a non-issue as well. This is an internal API that is currently used safely. What do you think? |
|
@michaelsproul Yes, that seems reasonable. |
Fixes: #46