feat: reduce allocations
After profiling allocations on a bootstrap node, I've noticed that peerInfoToPBPeer is a very heavy source of allocations. This change should improve the situation significantly.
Showing
... | ... | @@ -28,7 +28,6 @@ require ( |
github.com/libp2p/go-netroute v0.1.2 | ||
github.com/multiformats/go-base32 v0.0.3 | ||
github.com/multiformats/go-multiaddr v0.2.1 | ||
github.com/multiformats/go-multiaddr-dns v0.2.0 | ||
github.com/multiformats/go-multiaddr-net v0.1.4 | ||
github.com/multiformats/go-multihash v0.0.13 | ||
github.com/multiformats/go-multistream v0.1.1 | ||
... | ... |
pb/bytestring.go
0 → 100644
Please register or sign in to comment