lib/perobs/SpaceTree.rb in perobs-4.1.0 vs lib/perobs/SpaceTree.rb in perobs-4.2.0
- old
+ new
@@ -52,10 +52,10 @@
@nodes = EquiBlobsFile.new(@dir, 'database_spaces', progressmeter,
SpaceTreeNode::NODE_BYTES, 1)
# Benchmark runs showed a cache size of 128 to be a good compromise
# between read and write performance trade-offs and memory consumption.
- @cache = PersistentObjectCache.new(128, 5000, SpaceTreeNode, self)
+ @cache = PersistentObjectCache.new(256, -1, SpaceTreeNode, self)
end
# Open the SpaceTree file.
def open
@nodes.open