Files
lighthouse/consensus
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
..
2020-12-03 01:10:26 +00:00
2020-12-03 01:10:26 +00:00
2021-01-28 23:31:06 +00:00
2021-01-28 23:31:06 +00:00