| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| test/data | ||
| add.go | ||
| add_test.go | ||
| metadata.go | ||
| metadata_test.go |
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>
| 名称 |
最后提交
|
最后更新 |
|---|---|---|
| .. | ||
| test/data | 正在载入提交数据... | |
| add.go | 正在载入提交数据... | |
| add_test.go | 正在载入提交数据... | |
| metadata.go | 正在载入提交数据... | |
| metadata_test.go | 正在载入提交数据... |