1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-29 05:25:21 -05:00

remove 8k buffer pool

This commit is contained in:
Darien Raymond
2017-04-15 21:19:21 +02:00
parent f506a39d32
commit b1dfff2fdd
11 changed files with 13 additions and 57 deletions

View File

@@ -181,11 +181,6 @@ func New() *Buffer {
return mediumPool.Allocate()
}
// NewSmall returns a buffer with 0 length and 2K capacity.
func NewSmall() *Buffer {
return smallPool.Allocate()
}
// NewLocal creates and returns a buffer with 0 length and given capacity on current thread.
func NewLocal(size int) *Buffer {
return &Buffer{