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>
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| mount_darwin.go | 正在载入提交数据... | |
| mount_nofuse.go | 正在载入提交数据... | |
| mount_test.go | 正在载入提交数据... | |
| mount_unix.go | 正在载入提交数据... | |
| mount_windows.go | 正在载入提交数据... |