go-libp2p/core/peer
Håvard Anda Estensen 21dc42bd72
chore: preallocate slices (#1842)
* Preallocate slices

* Move slice allocs to right before they're used

* Revert slice assignments to append

* Don't preallocate for tests or deprecated code

* Don't preallocate too much
2022-11-06 04:48:40 -08:00
..
pb switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
addrinfo.go chore: preallocate slices (#1842) 2022-11-06 04:48:40 -08:00
addrinfo_serde.go switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
addrinfo_test.go switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
peer.go switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
peer_serde.go remove deprecated functions in the peer package (#205) 2021-07-22 12:17:36 -07:00
peer_serde_test.go switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
peer_test.go switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00
record.go chore: preallocate slices (#1842) 2022-11-06 04:48:40 -08:00
record_test.go switch from github.com/libp2p/go-libp2p-core to core 2022-08-17 17:13:02 +03:00