Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
~2x state_sim speedup via additional caching in get_crosslink_committee #316
Not especially pretty, but not particularly 'contagious', either, in inter-function/module/etc coupling terms, and not especially complicated, marginally risky, having too much tech debt, flexibility-reducing, or assumption-reliant.
Some benchmarks -- all numbers relative to each other in terms of keeping an overall condition/context:
To start with, the existing status quo ante, both with and without BLS validation (which adds a roughly constant additional ~4 minutes for the overall
I added two cachings, and I wanted to make sure that both were incrementally worthwhile, and one didn't subsume the other, so, with only
Of the two individual caches, this is the better of the two, but will prove to benefit from the other, the
If one had to choose between
So it goes from 8 minutes to 4:30 for 576 validators, with max slot time, even for epoch slots, of 1.6 seconds on a typical 15W/25W TDP laptop, with both new caches.