summaryrefslogtreecommitdiffstats
path: root/spec/unit/util/autoload.rb
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2009-03-13 23:33:17 +0100
committerJames Turnbull <james@lovedthanlost.net>2009-05-02 09:08:42 +1000
commitcc09c1af21e218917cc02c0ad9d8c44300803f49 (patch)
tree785b9bfc16478ec9e71cc25a8529cc5a3506fa82 /spec/unit/util/autoload.rb
parentd51d87e1f04b643f4efb5c6453a2c1fc9a1ca8e5 (diff)
downloadpuppet-cc09c1af21e218917cc02c0ad9d8c44300803f49.tar.gz
puppet-cc09c1af21e218917cc02c0ad9d8c44300803f49.tar.xz
puppet-cc09c1af21e218917cc02c0ad9d8c44300803f49.zip
Use FileCollection to store the pathname part of files
Using the FileCollection to store the path parts allows to represent a common path prefix by an integer. This way the memory used to manage deep hierarchies is reduced. The reduction factor depends on the number of managed files per directories: the more files in a directory, the more they will share the same common prefix, and the better we'll gain. Early tests on a 5 level deep hierarchy containing 100 files per level show about a 50% less memory consumption. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/unit/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions