From a2dfd9013e48c24aecc02f6ee8c4e943c6fdea0e Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 31 Dec 2013 17:36:58 +0000 Subject: [PATCH] 7340: Performance improvement in ancestor filter --- gramps/gen/filters/rules/person/_isancestorof.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/filters/rules/person/_isancestorof.py b/gramps/gen/filters/rules/person/_isancestorof.py index 6c970dfb1..88b5a4458 100644 --- a/gramps/gen/filters/rules/person/_isancestorof.py +++ b/gramps/gen/filters/rules/person/_isancestorof.py @@ -71,6 +71,8 @@ class IsAncestorOf(Rule): def init_ancestor_list(self, db, person,first): if not person: return + if person.handle in self.map: + return if not first: self.map.add(person.handle)