-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Improve forkchoice updateHead #2747
Comments
I think one of the cost is the slowness of BigInt calculation in We need to write benchmark test for any solutions we want to go. |
Related #2455 |
@dapplion assign pls |
As noted in #2332, effectiveBalance is always multiple of |
Current metrics the fork-choice cost is very low 👍 |
Fork-choice updateHead cost is about ~1% of total CPU time currently. I think it can still be improved, but it's low priority |
closing via #5882 |
Describe the bug
This is from a prater node with no validator
0624_prater_forkchoice_updateHead.cpuprofile.zip
a normal state transition takes 227.6m, 212.2 ms is for
updateHead
We need to find a way to improve
computeDeltas
in forkchoice implementation.Expected behavior
Not sure what the expectation is but I think forkchoice is designed to be lightweight, taking 90% of time per normal state transition for forkchoice is too much.
The text was updated successfully, but these errors were encountered: