lighthouse/consensus/state_processing/src
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
..
common Check whistle-blower index (#1911) 2020-11-16 06:28:09 +00:00
per_block_processing Avoid resizing attn signature sets vec (#2184) 2021-02-09 02:00:51 +00:00
per_epoch_processing Update consensus code and tests to v0.12.3 (#1655) 2020-09-26 01:58:29 +00:00
genesis.rs get_active_validator_indices() now has bound check (#1300) 2020-06-29 18:21:51 +10:00
lib.rs Process exits and slashings off the network (#1253) 2020-06-18 21:06:34 +10:00
macros.rs Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
per_block_processing.rs Detailed validator monitoring (#2151) 2021-01-20 19:19:38 +00:00
per_epoch_processing.rs Remove saturating arith from state_processing (#1644) 2020-09-25 05:18:21 +00:00
per_slot_processing.rs Remove saturating arith from state_processing (#1644) 2020-09-25 05:18:21 +00:00
test_utils.rs Improve bls::SecretKey privacy (#1164) 2020-05-19 11:23:08 +10:00
verify_operation.rs Detailed validator monitoring (#2151) 2021-01-20 19:19:38 +00:00