1
0
forked from VimPlug/jedi

cache compiled.CompiledObject.defined_names attribute, improves test suite performance by 20%, numpy by more than 50%. Awesome!

This commit is contained in:
Dave Halter
2014-04-14 02:20:22 +02:00
parent 3fced34544
commit ff810d9ece
3 changed files with 4 additions and 1 deletions

View File

@@ -80,6 +80,9 @@ class LazyName(helpers.FakeName):
mod)
module = compiled.CompiledObject(raw_module)
if raw_module == builtins:
# The builtins module is special and always cached.
module = compiled.builtin
return compiled.create(self._evaluator, self._value, module, module)
@parent.setter