lighthouse/beacon_node
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
..
beacon_chain Memory usage reduction (#1522) 2020-08-17 08:05:13 +00:00
client Add multiaddr support in bootnodes (#1481) 2020-08-17 02:13:26 +00:00
eth1 Cross-compile to vendored x86_84, aarch64 (Raspberry Pi 4) (#1497) 2020-08-11 05:16:30 +00:00
eth2_libp2p Remove yamux support (#1526) 2020-08-17 05:05:06 +00:00
genesis Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
network Correct logic for peer sync identification (#1525) 2020-08-17 03:00:10 +00:00
operation_pool Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
rest_api Wind down the SSE thread when the client disconnects (#1514) 2020-08-13 06:12:18 +00:00
src Add multiaddr support in bootnodes (#1481) 2020-08-17 02:13:26 +00:00
store Memory usage reduction (#1522) 2020-08-17 08:05:13 +00:00
tests Improve tokio task execution (#1181) 2020-06-04 21:48:05 +10:00
timer Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
websocket_server Lighthouse crate v0.2.0 bump (#1450) 2020-08-06 03:43:05 +00:00
Cargo.toml Update to v0.2.3 (#1519) 2020-08-14 08:32:31 +00:00