lighthouse/consensus/state_processing
Paul Hauner 7c059117f4 Avoid resizing attn signature sets vec (#2184)
## Issue Addressed

NA

## Proposed Changes

Reduces allocations by initializing the `pubkeys` vec to its final size. I doubt this will make a substantial difference, but it's nice to do it this way.

Seeing as `indexed_attestation.attesting_indices` has a [fixed length](e4b62139d7/consensus/types/src/indexed_attestation.rs (L22)), there's no real risk of a memory blow-up by pre-allocating the size of the `Vec`.

## Additional Info

NA
2021-02-09 02:00:51 +00:00
..
benches Consensus updates for v0.12 (#1228) 2020-06-03 14:56:54 +10:00
src Avoid resizing attn signature sets vec (#2184) 2021-02-09 02:00:51 +00:00
tests Support multiple BLS implementations (#1335) 2020-07-25 02:03:18 +00:00
.gitignore Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
Cargo.toml update dependencies (#2032) 2020-12-07 08:20:33 +00:00