significant speedup due to compiled caching

This commit is contained in:
Dave Halter
2014-04-13 16:31:38 +02:00
parent edeebd0bb9
commit 4bc55be103
6 changed files with 25 additions and 17 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class NameFinder(object):
"""Checks for both __getattr__ and __getattribute__ methods"""
result = []
# str is important to lose the NamePart!
name = compiled.create(str(self.name_str))
name = compiled.create(self._evaluator, str(self.name_str))
with common.ignored(KeyError):
result = inst.execute_subscope_by_name('__getattr__', [name])
if not result: