Make bytesPipe use linear allocations

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2015-09-16 16:51:11 -08:00
parent 46b458fe3b
commit 3c6dcfb6ca
3 changed files with 120 additions and 57 deletions

View file

@ -5,12 +5,8 @@ import (
"encoding/hex"
"io"
"sync"
"github.com/docker/docker/pkg/random"
)
var rndSrc = random.NewSource()
type readCloserWrapper struct {
io.Reader
closer func() error