lighthouse/testing/ef_tests/src/cases
Paul Hauner fa6ad1a11a Deduplicate block root computation (#3590)
## Issue Addressed

NA

## Proposed Changes

This PR removes duplicated block root computation.

Computing the `SignedBeaconBlock::canonical_root` has become more expensive since the merge as we need to compute the merke root of each transaction inside an `ExecutionPayload`.

Computing the root for [a mainnet block](https://beaconcha.in/slot/4704236) is taking ~10ms on my i7-8700K CPU @ 3.70GHz (no sha extensions). Given that our median seen-to-imported time for blocks is presently 300-400ms, removing a few duplicated block roots (~30ms) could represent an easy 10% improvement. When we consider that the seen-to-imported times include operations *after* the block has been placed in the early attester cache, we could expect the 30ms to be more significant WRT our seen-to-attestable times.

## Additional Info

NA
2022-09-23 03:52:42 +00:00
..
bls_aggregate_sigs.rs Update spec tests to v1.1.0-beta.4 (#2548) 2021-09-25 05:58:35 +00:00
bls_aggregate_verify.rs Update spec tests to v1.1.0-beta.4 (#2548) 2021-09-25 05:58:35 +00:00
bls_eth_aggregate_pubkeys.rs Update spec tests to v1.1.0-beta.4 (#2548) 2021-09-25 05:58:35 +00:00
bls_eth_fast_aggregate_verify.rs Update spec tests to v1.1.0-beta.4 (#2548) 2021-09-25 05:58:35 +00:00
bls_fast_aggregate_verify.rs Update spec tests to v1.1.0-beta.4 (#2548) 2021-09-25 05:58:35 +00:00
bls_sign_msg.rs Update spec tests to v1.1.0-beta.4 (#2548) 2021-09-25 05:58:35 +00:00
bls_verify_msg.rs Update spec tests to v1.1.0-beta.4 (#2548) 2021-09-25 05:58:35 +00:00
common.rs Use SmallVec for TreeHash packed encoding (#3581) 2022-09-16 08:54:06 +00:00
epoch_processing.rs Remove equivocating validators from fork choice (#3371) 2022-07-28 09:43:41 +00:00
fork_choice.rs Deduplicate block root computation (#3590) 2022-09-23 03:52:42 +00:00
fork.rs Update to spec v1.1.8 (#2893) 2022-01-19 00:24:19 +00:00
genesis_initialization.rs v1.1.1 spec updates (#2684) 2021-12-02 14:26:54 +11:00
genesis_validity.rs 1.57.0 lints (#2850) 2021-12-03 04:44:30 +00:00
operations.rs Builder Specs v0.2.0 (#3134) 2022-07-30 00:22:37 +00:00
rewards.rs Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
sanity_blocks.rs Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
sanity_slots.rs Update to Rust 1.59 and 2021 edition (#3038) 2022-02-25 00:10:17 +00:00
shuffling.rs Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
ssz_generic.rs 1.57.0 lints (#2850) 2021-12-03 04:44:30 +00:00
ssz_static.rs 1.57.0 lints (#2850) 2021-12-03 04:44:30 +00:00
transition.rs Update to spec v1.1.8 (#2893) 2022-01-19 00:24:19 +00:00