Removed debug logging

This commit is contained in:
Aliaksandr Valialkin
2016-06-23 20:59:29 +03:00
parent 1dbe0d3c7d
commit da2b103f14
-7
View File
@@ -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)