lighthouse/tests/ef_tests/src/cases
Paul Hauner 7f6ae4c2f5
Refactor tree hashing (#861)
* Pre-allocated tree hash caches

* Add SmallVec to tree hash cache

* Avoid allocation for validator.pubkey

* Avoid iterator which seems to be doing heap alloc

* Add more smallvecs

* MOAR SMALLVEC

* Move non-test code to Hash256 tree hash

* Fix byte ordering error

* Add incomplete but working merkle stream impl

* Fix zero hash error

* Add zero hash fn

* Add MerkleStream comments

* Add smallvec, tidy

* Integrate into tree hash derive

* Update ssz_types tree hash

* Don't heap alloc for mix in length

* Add byte-level streaming to MerkleStream

* Avoid recursion in write method

* Update BLS to MerkleStream

* Fix some not-compiling tests

* Remove debug profiling

* Remove code duplication

* Move beacon state tree hash to new hasher

* Fix failing tests

* Update comments

* Add some fast-paths to tree_hash::merkle_root

* Remove unncessary test

* Rename MerkleStream -> MerkleHasher

* Rename new_with_leaf_count -> with_leaves

* Tidy

* Remove NonZeroUsize

* Remove todo

* Update smallvec
2020-03-05 08:07:27 +11:00
..
bls_aggregate_sigs.rs SSZ generic tests for big uints 2019-09-04 14:32:04 +10:00
bls_aggregate_verify.rs Update to Spec v0.10 (#817) 2020-02-11 10:19:36 +11:00
bls_fast_aggregate_verify.rs Update to Spec v0.10 (#817) 2020-02-11 10:19:36 +11:00
bls_sign_msg.rs Update to Spec v0.10 (#817) 2020-02-11 10:19:36 +11:00
bls_verify_msg.rs Update to Spec v0.10 (#817) 2020-02-11 10:19:36 +11:00
common.rs Refactor tree hashing (#861) 2020-03-05 08:07:27 +11:00
epoch_processing.rs Avoid building caches during block replay (#783) 2020-01-09 11:43:11 +11:00
genesis_initialization.rs Cleanups and SSZ generic container tests 2019-09-05 10:28:09 +10:00
genesis_validity.rs Cleanups and SSZ generic container tests 2019-09-05 10:28:09 +10:00
operations.rs Update to Spec v0.10 (#817) 2020-02-11 10:19:36 +11:00
sanity_blocks.rs Update to Spec v0.10 (#817) 2020-02-11 10:19:36 +11:00
sanity_slots.rs Optimization: avoid recomputing known state roots (#762) 2020-01-03 15:09:00 +11:00
shuffling.rs Rename get_permutated_index to compute_shuffled_index. (#564) 2019-10-29 12:07:12 +11:00
ssz_generic.rs Refactor tree hashing (#861) 2020-03-05 08:07:27 +11:00
ssz_static.rs Refactor tree hashing (#861) 2020-03-05 08:07:27 +11:00