You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Investigate why is this so slow (chekcing against real env such as Bali)
Fix the slowness (chekcing against real env such as Bali)
Ideally test against multiple providers
Add a benchmark using the simulated env, corroborate that the results make sense vs the real env. Or add a test that uses a real env and introduce a GH secret to connect to a real RPC, have a deathline on the test
After initial investigation using cpu profiling with a setting of 2000 block range against Bali network fork RPC in [[Tenderly]] majority of time is spent in the Tree implementation, using SQL as a storage backend for the tree https://flamegraph.com/share/c8814381-b6dd-11ef-8d9a-2e2d4d104be7
go test -timeout 240s -cpuprofile cpu4.out -run ^TestBenchBali$ github.com/0xPolygon/cdk/l1infotreesync -v
Going to try with a higher block range it doesn't work with 500k range
rpc.jsonError=&{-32602 invalid params Query returned more than 20000 results. Try with this block range [0x565539, 0x5c93ef]
Querying every block header is inefficient, let's check only the last one, usually it will just work because the won't be any reorg in normal conditions, when there's a reorg, all the work will be discarded and then re-processed but it should be much more efficient in general case.
Investigate why is this so slow (chekcing against real env such as Bali)
more details here
The text was updated successfully, but these errors were encountered: