Intellij Plugin Dev - Performance issues when loading modules automatically. Follow
I am trying to build an automatic module load/unloader based on the file that is open on the editor and noticed that the api provided by `ModuleManager#setUnloadModules` has a huge main thread as it runs purely on write thread invoked via dispatch. My use case is as follows:
* User opens project
* We unload all modules
* When user opens file we want to load a smaller subset of modules.
Is there a way to efficiently just load the module and trigger Indexing to pick up sources from the loaded module?
Please sign in to leave a comment.
in the current architecture changing list of loaded modules is a rather expensive operation. And indexing is supposed to happen when project configuration changes, not on opening each file in the editor. So there is no efficient way to 'just load the module'.
What problem are you trying to solve?