-
Notifications
You must be signed in to change notification settings - Fork 133
Conversation
@@ -274,6 +274,7 @@ internal class AstPythonInterpreter : IPythonInterpreter2, IModuleContext, ICanF | |||
} | |||
|
|||
_analyzer = state; | |||
RemoveImportedModules(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a lock here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code locks on _userSearchPathImported
operations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am resolving it on another work with importing/search paths
foreach (var mod in _modulesByFilename.Values) { | ||
mod.Clear(); | ||
mod.EnsureModuleVariables(this); | ||
} | ||
|
||
_interpreterFactory.NotifyImportNamesChanged(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Who is listening to this ImportableModulesChanged
event?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AstFactory and AstIntepreter, erasing caches
#209 first |
Fixes #109
Simplifies event listening and make things happen in proper order. Reloading modules no longer increases RAM.