Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In several places, the full free vid list is being copied - at block height 3.5m, there would be 26m entries in the list (and growing) leading to the list taking more time than the rest of the processing. Also, rocksdb documentation mentions performance benefits of inserting already-sorted keys - this seems like a a loose argument for using ever-increasing vid numbers. ~3x-6x perf improvement depending on where in the block history we are. pre: ``` INF 2024-06-02 08:26:40.721+02:00 Imported blocks blockNumber=3500001 txs=1498120 gas=8890837 bps=28.796 tps=320.649 gps=1150.022 avgBps=29.002 avgTps=434.486 avgGps=2578.528 elapsed=57m28s28ms67us160ns ``` post: ``` INF 2024-06-02 21:37:12.146+02:00 Imported blocks blockNumber=3500001 blocks=100000 txs=1498120 gas=8890837 bps=155.409 tps=1730.486 gps=6206.475 avgBps=120.526 avgTps=1805.623 avgGps=10715.761 elapsed=13m49s697ms ```
- Loading branch information