Skip to content

Commit

Permalink
Add memoization where it needs to be. Fixes #894.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Apr 4, 2017
1 parent 4b84137 commit eb37f82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jedi/evaluate/compiled/mixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from jedi.cache import underscore_memoization
from jedi.evaluate import imports
from jedi.evaluate.context import Context
from jedi.evaluate.cache import memoize_default


class MixedObject(object):
Expand Down Expand Up @@ -101,6 +102,7 @@ def __init__(self, evaluator, mixed_object, is_instance=False):
#return MixedName(self._evaluator, self._compiled_object, name)


@memoize_default(evaluator_is_first_arg=True)
def _load_module(evaluator, path, python_object):
module = parse(
grammar=evaluator.grammar,
Expand Down

0 comments on commit eb37f82

Please sign in to comment.