mirror of
https://github.com/valyala/bytebufferpool.git
synced 2026-06-14 13:26:35 +03:00
Removed debug logging
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package bytebufferpool
|
||||
|
||||
import (
|
||||
"log"
|
||||
"sort"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
@@ -63,8 +62,6 @@ func (p *byteBufferPool) calibrate() {
|
||||
return
|
||||
}
|
||||
|
||||
log.Printf("calls=%d", p.calls)
|
||||
|
||||
a := make(callSizes, 0, steps)
|
||||
var callsSum uint64
|
||||
for i := uint64(0); i < steps; i++ {
|
||||
@@ -77,8 +74,6 @@ func (p *byteBufferPool) calibrate() {
|
||||
}
|
||||
sort.Sort(a)
|
||||
|
||||
log.Printf("a=%#v", a)
|
||||
|
||||
defaultSize := a[0].size
|
||||
maxSize := defaultSize
|
||||
|
||||
@@ -95,8 +90,6 @@ func (p *byteBufferPool) calibrate() {
|
||||
}
|
||||
}
|
||||
|
||||
log.Printf("maxSize=%d, defaultSize=%d\n", maxSize, defaultSize)
|
||||
|
||||
atomic.StoreUint64(&p.defaultSize, defaultSize)
|
||||
atomic.StoreUint64(&p.maxSize, maxSize)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user