gcs, swift: increase directory listing chunk to 1000 to increase performance

This commit is contained in:
Nick Craig-Wood 2017-06-06 15:03:52 +01:00
parent 53c3e5f0ab
commit 3a431056e2
2 changed files with 3 additions and 2 deletions

View file

@ -20,6 +20,7 @@ import (
// Constants
const (
directoryMarkerContentType = "application/directory" // content type of directory marker objects
listChunks = 1000 // chunk size to read directory listings
)
// Globals
@ -281,7 +282,7 @@ func (f *Fs) listContainerRoot(container, root string, dir string, level int, fn
// Options for ObjectsWalk
opts := swift.ObjectsOpts{
Prefix: prefix,
Limit: 256,
Limit: listChunks,
}
switch level {
case 1: