lighthouse/consensus
Paul Hauner 8772c02fa0 Reduce temp allocations in network metrics (#1895)
## Issue Addressed

Using `heaptrack` I could see that ~75% of Lighthouse temporary allocations are caused by temporary string allocations here.

## Proposed Changes

Reduces temporary `String` allocations when updating metrics in the `network` crate. The solution isn't perfect since we rebuild our caches with each call, but it's a significant improvement.

## Additional Info

NA
2020-11-13 04:19:38 +00:00
..
cached_tree_hash Address clippy lints, panic in ssz_derive on overflow (#1714) 2020-10-25 23:27:39 +00:00
fork_choice Address clippy lints, panic in ssz_derive on overflow (#1714) 2020-10-25 23:27:39 +00:00
int_to_bytes Update external deps (#1711) 2020-10-05 08:22:19 +00:00
merkle_proof Implement matches! macro (#1777) 2020-10-15 21:42:43 +00:00
proto_array Update external deps (#1711) 2020-10-05 08:22:19 +00:00
safe_arith Remove saturating arith from state_processing (#1644) 2020-09-25 05:18:21 +00:00
serde_utils Update external deps (#1711) 2020-10-05 08:22:19 +00:00
ssz Address clippy lints, panic in ssz_derive on overflow (#1714) 2020-10-25 23:27:39 +00:00
ssz_derive Address clippy lints, panic in ssz_derive on overflow (#1714) 2020-10-25 23:27:39 +00:00
ssz_types add quoted serialization util for FixedVector and VariableList (#1794) 2020-10-29 23:25:21 +00:00
state_processing Update external deps (#1711) 2020-10-05 08:22:19 +00:00
swap_or_not_shuffle Update external deps (#1711) 2020-10-05 08:22:19 +00:00
tree_hash Address clippy lints, panic in ssz_derive on overflow (#1714) 2020-10-25 23:27:39 +00:00
tree_hash_derive Update external deps (#1711) 2020-10-05 08:22:19 +00:00
types Reduce temp allocations in network metrics (#1895) 2020-11-13 04:19:38 +00:00