nimbus-eth2/beacon_chain/rpc
Jacek Sieka 3cb31e66b4
set upper bound on EpochRef cache (#2403)
* set upper bound on EpochRef cache

* max 32 EpochRef instances
* less memory waste in BlockRef by removing EpochRef seq that is mostly
unused (~20mb)
* less memory waste in dag block lookup by not keeping an extra copy of
digest (~70mb)
* fix `==` and `$` for Eth2Digest
* remove `ChainDAG.tmpState` (~50mb?)

all in all, this branch cuts mainnet memory usage by ~160-180mb and puts
limits on EpochRef cache usage - where normally it hovered around 950mb
before, it's now sitting at 600-700mb on my machine.

* docs
2021-03-17 11:17:15 +01:00
..
beacon_api.nim Validator APIs now return actual balance instead of effective balance (#2408) 2021-03-15 07:19:04 +00:00
config_api.nim Move SSZ, deposit_contracts & eth1_monitor [reorg files 3/5] (#2371) 2021-03-03 07:23:05 +01:00
debug_api.nim Reorg (5/5) (#2377) 2021-03-05 14:12:00 +01:00
eth2_json_rpc_serialization.nim Reorg (5/5) (#2377) 2021-03-05 14:12:00 +01:00
event_api.nim move rpc api to own folder, mimic upstream structure (#1905) 2020-10-27 10:00:57 +01:00
nimbus_api.nim set upper bound on EpochRef cache (#2403) 2021-03-17 11:17:15 +01:00
node_api.nim Reorg (5/5) (#2377) 2021-03-05 14:12:00 +01:00
rpc_utils.nim set upper bound on EpochRef cache (#2403) 2021-03-17 11:17:15 +01:00
validator_api.nim Reorg (5/5) (#2377) 2021-03-05 14:12:00 +01:00