nimbus-eth1/hive_integration/nodocker
Jacek Sieka 7f76586214
Speed up account ledger a little (#2279)
`persist` is a hotspot when processing blocks because it is run at least
once per transaction and loops over the entire account cache every time.

Here, we introduce an extra `dirty` map that keeps track of all accounts
that need checking during `persist` which fixes the immediate
inefficiency, though probably this could benefit from a more thorough
review - we also get rid of the unused clearCache flag - we start with
a fresh cache on every fresh vmState.

* avoid unnecessary code hash comparisons
* avoid unnecessary copies when iterating
* use EMPTY_CODE_HASH throughout for code hash comparison
2024-06-02 21:21:29 +02:00
..
consensus Culling legacy DB and accounts cache (#2197) 2024-05-20 10:17:51 +00:00
engine Speed up account ledger a little (#2279) 2024-06-02 21:21:29 +02:00
graphql remove expicit PoW support from tx pool; tighten tx pool exceptions specs (#2235) 2024-05-28 20:26:51 +02:00
pyspec Simplify AccountsLedgerRef complexity (#2239) 2024-05-29 13:06:49 +02:00
rpc results: use canonical import (#2248) 2024-05-30 14:54:03 +02:00
build_sims.sh Fix 'trustedSetupFile' is not accessible for type NimbusConf.cmd == import (#2008) 2024-02-04 22:45:54 +07:00
sim_utils.nim Simplify pyspec simulator 2023-09-30 21:31:57 +07:00