lighthouse-pulse/beacon_node/store/src
Paul Hauner 61d5b592cb Memory usage reduction (#1522)
## Issue Addressed

NA

## Proposed Changes

- Adds a new function to allow getting a state with a bad state root history for attestation verification. This reduces unnecessary tree hashing during attestation processing, which accounted for 23% of memory allocations (by bytes) in a recent `heaptrack` observation.
- Don't clone caches on intermediate epoch-boundary states during block processing.
- Reject blocks that are known to fork choice earlier during gossip processing, instead of waiting until after state has been loaded (this only happens in edge-case).
- Avoid multiple re-allocations by creating a "forced" exact size iterator.

## Additional Info

NA
2020-08-17 08:05:13 +00:00
..
impls Write new blocks and states to the database atomically (#1285) 2020-07-01 12:45:57 +10:00
chunked_iter.rs Make key value storage abstractions more accurate (#1267) 2020-06-16 11:34:04 +10:00
chunked_vector.rs Fix clippy warnings (#1385) 2020-07-23 14:18:00 +00:00
config.rs removed state-cache-size flag from beacon_node/src (#1120) 2020-05-14 22:34:24 +10:00
errors.rs Harden the freezing procedure against failures (#1323) 2020-07-03 09:47:31 +10:00
forwards_iter.rs Fix clippy warnings (#1385) 2020-07-23 14:18:00 +00:00
hot_cold_store.rs Memory usage reduction (#1522) 2020-08-17 08:05:13 +00:00
impls.rs Clean up database abstractions (#1200) 2020-06-01 08:13:49 +10:00
iter.rs Make key value storage abstractions more accurate (#1267) 2020-06-16 11:34:04 +10:00
leveldb_store.rs Fix clippy warnings (#1385) 2020-07-23 14:18:00 +00:00
lib.rs Harden the freezing procedure against failures (#1323) 2020-07-03 09:47:31 +10:00
memory_store.rs Harden the freezing procedure against failures (#1323) 2020-07-03 09:47:31 +10:00
metrics.rs Write new blocks and states to the database atomically (#1285) 2020-07-01 12:45:57 +10:00
partial_beacon_state.rs Fix clippy warnings (#1385) 2020-07-23 14:18:00 +00:00