-
-
Notifications
You must be signed in to change notification settings - Fork 306
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 RootCache performance test #4374
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
@dapplion I think ssz-v2 should have same mechanism to cache loaded nodes, do you know why it takes more time than RootCache? I'd drop it only when the performances between the two are comparable |
To get a root each impl has to:
RootCache will always be faster, since it doesn't have to deserialize anything. I don't think it's ever possible for the ssz impl to be as fast as the RootCache. The question is if the optimization justifies having a RootCache there. |
I see. Tbh, I still don't feel convenient for any changes that's slower 😃
|
Motivation
RootCache may become unnecessary after merging SSZ v2.
Description
Locally I get
RootCache is faster (always will be since it's just a Map.get). But state is somewhat fast too.
1us
* 128 attestations per block is0.13 ms
of processing time that would be added if we remove the RootCache. @tuyennhv what do you think?