Commit 5e6f217
authored
addrsmanager: extract out addressing logic from basichost (#3075)
Benchmark for AllAddrs:
```
goos: linux
goarch: amd64
pkg: github.com/libp2p/go-libp2p
cpu: AMD Ryzen 7 7840U w/ Radeon 780M Graphics
BenchmarkAllAddrs-16 16737 122245 ns/op 21240 B/op 218 allocs/op
```
after:
```
goos: linux
goarch: amd64
pkg: github.com/libp2p/go-libp2p
cpu: AMD Ryzen 7 7840U w/ Radeon 780M Graphics
BenchmarkAllAddrs-16 11103236 105.7 ns/op 192 B/op 1 allocs/op
```1 parent 578af0c commit 5e6f217
File tree
6 files changed
+1093
-385
lines changed- p2p/host
- basic
- routed
6 files changed
+1093
-385
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
0 commit comments