diff --git a/cmd/os-readdir_unix.go b/cmd/os-readdir_unix.go index 8fec5a7a3..1c3a461b1 100644 --- a/cmd/os-readdir_unix.go +++ b/cmd/os-readdir_unix.go @@ -31,10 +31,10 @@ import ( // refer https://github.com/golang/go/issues/24015 const blockSize = 8 << 10 // 8192 -// By default atleast 20 entries in single getdents call +// By default atleast 128 entries in single getdents call (1MiB buffer) var direntPool = sync.Pool{ New: func() interface{} { - buf := make([]byte, blockSize*20) + buf := make([]byte, blockSize*128) return &buf }, }