Psi and concurrency
Hi,
is an instance of PsiBuilder used only from a single thread? Or is it possible that multiple threads access the same PsiBuilder instance?
Is it possible that a psi element is accessed from multiple threads at the same time?
I was wondering if inspections and the like are executed multi-threaded or not.
Thanks!
Wallaby
Please sign in to leave a comment.
A PsiBuilder is a short-lived object used for linear parsing of text, so I can't see any scenario where multi-threaded access to one would be appropriate or useful. For multi-threaded access to PSI elements, see https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+Architectural+Overview#IntelliJIDEAArchitecturalOverview-Threading