Poor performance of IntelliJ with Kotlin project
We currently have a small Kotlin project (approximately 50 Kotlin files).
While working on the project we encounter a lot of issues with indexing of the project taking a very long time. Also when changing a method to fix something like a syntax error, it takes approximately 5 seconds untill the change is recognised by Intellij.
Additionally the IntelliSense also has some issues. A lot of times it is faster to type class names etc. by yourself because the IntelliSense even doesn't appear.
Furthermore my colleague also encountered a moment where Intellij just crashed. The only solution was to reimport the whole project.
We already tried to change memory settings (up to 8GB). Are there some other things we can tweak to improve the performance of Intellij with our Kotlin project?
Our current Intellij version is 2019.3.4, with some basic plugins installed like the Kotlin and Sonarlint plugin.
Please sign in to leave a comment.
Please try to disable the new type inference for IDE analysis in "File | Settings | Build, Execution, Deployment | Compiler | Kotlin Compiler".
Also, please report an issue at http://kotl.in/issue with a CPU snapshot taken according to https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems and your IDE logs https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files, so we can investigate the performance problem. Thanks!
Very similar issues here. The supposed time saving of Kotlin (you know, not having to type semicolons) is entirely cancelled out by the sluggish performance of the IDE on a Kotlin project.