I am getting insane importing + indexing times wit...
# intellij
a
I am getting insane importing + indexing times with intelliJ community. (its at 7 mins at the moment and its still going). This happens in a large kotlin multiplatform project with only jvm and js targets enabled, it has 50+ gradle submodules but something still tells me that indexing should't take that long I have already enabled download shared indexes. Is there anything else I could do to improve intelliJ import time??
Finished importing at 19min, 27 seconds, 171 ms
n
Does it have enough heap memory? I'm asking it because (based on my experience) imporing and indexing performance have improved a lot, I'm very satisfied with it in my project with lots of modules.
a
I have
org.gradle.jvmargs=-Xmx8192M -Dkotlin.daemon.jvm.options\="-Xmx4096M"
in my
gradle.properties
files
Unsure if that answers the heap question or not
n
Check the Idea heap settings in the Help menu.
a
MaxHepSize is set to 10240MiB
n
Wow, OK, I don't think that insufficient heap is the root of the problem 😀
a
what mporting times are you getting in your project?
n
Around 20 seconds (I'm not at my desk but I will check the exact time later). 19 minutes is insanely slow, it's sure that there is some problem, maybe others can help more than I...
a
Will keep asking around. But just one more question Do you get 20 seconds on multiplatform projects? especially ones with JS target enabled?? Most time I see is spent on downloding node despite it being already present
n
Yes, I have JVM, JS and also x86 native targets enabled on most "library" projects. Additional targets do not seem to increase importing time a lot (but they increase compilation time heavily, especially the native targets).
a
Well, looks like something ain't right on my side then
👍 1
n
I checked on my project: • Initial import: 46s • Reload all Gradle projects: 6s I have about 40 modules (currently enabled), most of them are multiplatform libraries, some of them are single-platform apps.
a
Yeap, that not far from what I have as well
May I know your version of intelliJ?
n
the latest release version (2023.1.2)
a
I am actually on 2023.2 EAP, but even 2023.1.2 gave me the same results
n
Check the Idea logs, maybe you find something...
Most time I see is spent on downloding node despite it being already present
+ maybe ask in #javascript as well.
a
will do so
n
Just a thought: is your Kotlin version up-to-date? There were several performance improvements (and lots of bug fixes) in the 1.8.x versions, including the build tooling. I use 1.8.21 (1.8.22 does not compile with Windows native target for some reason 😞 ).
a
Idea's kotlin plugin is 1.8.21, I am using 1.8.20 in my gradle scripts
Let me see if pushing to 1.8.21 in gradle would help
m
If you don't mind, would you please report your issue in YouTrack? https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems
a
I would not mind at all
thank you color 1
🙂 1
🙌🏻 1
m
Thanks!