dirnode.build_manifest: include node.list in the limiter, that's the most important thing to slow down

This commit is contained in:
Brian Warner 2008-10-07 13:19:29 -07:00
parent cd236efc68
commit 9d4749d546

@ -480,7 +480,7 @@ class NewDirectoryNode:
def _deep_traverse_dirnode(self, node, path, walker, found, limiter):
# process this directory, then walk its children
d = limiter.add(walker.add_node, node, path)
d.addCallback(lambda ignored: node.list())
d.addCallback(lambda ignored: limiter.add(node.list))
d.addCallback(self._deep_traverse_dirnode_children, node, path,
walker, found, limiter)
return d