Several optimizations to reduce peak memory usage when a directory has a large number of files
Merge pull request #2 from bc-brendan-roche/memory-opts

BIG-4045 Several optimizations to reduce peak memory usage when a directory has a large number of files