From da2b103f14062648010be60e42030e4d2c4e2845 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 23 Jun 2016 20:59:29 +0300 Subject: [PATCH] Removed debug logging --- pool.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pool.go b/pool.go index 54962a8..6519ec8 100644 --- a/pool.go +++ b/pool.go @@ -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)