mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-21 07:48:26 +08:00
cache compiled.CompiledObject.defined_names attribute, improves test suite performance by 20%, numpy by more than 50%. Awesome!
This commit is contained in:
@@ -82,6 +82,7 @@ class CompiledObject(Base):
|
||||
return CompiledObject(c, self.parent)
|
||||
return self
|
||||
|
||||
@underscore_memoization
|
||||
def get_defined_names(self):
|
||||
names = []
|
||||
cls = self._cls()
|
||||
|
||||
Reference in New Issue
Block a user