mirror of https://github.com/v2ray/v2ray-core
reduce readv alloc count
parent
28ccd4ddd5
commit
f99fb3d87d
|
@ -93,7 +93,7 @@ func (r *ReadVReader) ReadMultiBuffer() (MultiBuffer, error) {
|
|||
bs[i] = nil
|
||||
}
|
||||
|
||||
if isFull && nBuf < 128 {
|
||||
if isFull && nBuf < 8 {
|
||||
r.nBuf *= 4
|
||||
} else {
|
||||
r.nBuf = int32(nBuf)
|
||||
|
|
Loading…
Reference in New Issue