lighthouse/beacon_node/network
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
..
src Reduce temp allocations in network metrics (#1895) 2020-11-13 04:19:38 +00:00
Cargo.toml Update libp2p (#1865) 2020-11-06 04:14:14 +00:00