mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 04:17:44 +08:00
Turns out that `pool.Put(buf)` had to *allocate* because we needed to turn
`[]byte` into `interface{}`. Apparently, we've never done this correctly we just
never noticed because we never really used buffer pools extensively.
However, since migrating yamux to a buffer-pool backed buffer, this started
showing up in allocation profiles.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
|
||
|---|---|---|
| .. | ||
| opts | ||
| republisher | ||
| base.go | ||
| cache.go | ||
| dns_test.go | ||
| dns.go | ||
| interface.go | ||
| ipns_resolver_validation_test.go | ||
| namesys_test.go | ||
| namesys.go | ||
| proquint.go | ||
| publisher_test.go | ||
| publisher.go | ||
| resolve_test.go | ||
| routing.go | ||