posix: Use sync.Pool buffers to copy in large buffers. (#3106)

These fixes are borrowed from the fixes required for GlusterFS i/o throughput.
This commit is contained in:
Harshavardhana
2016-10-26 17:14:05 -07:00
committed by GitHub
parent 8871eb8e1e
commit e9c45102b0
5 changed files with 33 additions and 11 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ const (
blockSizeV1 = 10 * 1024 * 1024 // 10MiB.
// Staging buffer read size for all internal operations version 1.
readSizeV1 = 128 * 1024 // 128KiB.
readSizeV1 = 1 * 1024 * 1024 // 1MiB.
// Buckets meta prefix.
bucketMetaPrefix = "buckets"