1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 06:37:17 +00:00

Re-added the root children count optimization in the results outline.

This commit is contained in:
Virgil Dupras
2010-02-12 11:34:00 +01:00
parent a4bf1c8be6
commit 514426b980
5 changed files with 26 additions and 0 deletions

View File

@@ -88,6 +88,11 @@ class ResultTree(GUIObject, Tree):
else:
return node.data[column]
def root_children_counts(self):
# This is a speed optimization for cases where there's a lot of results so that there is
# not thousands of children_count queries when expandAll is called.
return [len(node) for node in self]
def sort(self, key, asc):
if self.power_marker:
self.app.results.sort_dupes(key, asc, self.delta_values)