lighthouse/beacon_node/store
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
..
benches Fix clippy warnings (#813) 2020-01-21 18:38:56 +11:00
examples Fix clippy warnings (#813) 2020-01-21 18:38:56 +11:00
src Memory usage reduction (#1522) 2020-08-17 08:05:13 +00:00
Cargo.toml Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00