mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-10 20:50:25 +08:00
优化内存缓存相关代码
This commit is contained in:
@@ -126,9 +126,7 @@ func (this *MemoryFragmentPool) Get(expectSize int64) (resultBytes []byte, ok bo
|
||||
return
|
||||
}
|
||||
|
||||
if expectSize < minMemoryFragmentPoolItemSize {
|
||||
return
|
||||
}
|
||||
// DO NOT check min segment size
|
||||
|
||||
this.mu.RLock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user