https://kotlinlang.org logo
a

Animesh Sahu

11/14/2020, 5:05 AM
What is general requirement of PC to open a large project (like Kotlin itself) in Intellij? Seems the intellij is eating so much RAM ~2.8GB but still not able to index anything (only getting purple-white highlighted).
r

Rajkumar Singh

11/14/2020, 5:19 AM
I have the same problem. I allocated 4GB memory to it and still it can't figure out anything. it stalls everything. I'm using gradle projects. really frustrating.
c

Colton Idle

11/14/2020, 5:31 AM
From what I understand this is a known issue with kotlin that wont be fully resolved until the new frontend compiler is released
🤔 1
a

Animesh Sahu

11/14/2020, 5:33 AM
Any references @Colton Idle? Intermediate Representation seems experimental, would go through alpha-beta-stable, so shouldn't come into stable existence anytime soon...
g

gildor

11/14/2020, 8:37 AM
Experimental IR which you talking about is not related on performance on which Colton is talking about, it's BE IR, but performance improvement will be available on Frontend IR
👀 1
Work in progress, and it will be not less than a year until alpha, maybe more
👍 1
a

Animesh Sahu

11/14/2020, 8:39 AM
So syntax highlighting and indexing is limited by the compiler atm 👀
g

gildor

11/14/2020, 9:10 AM
2.8 probably is not enough for such project as Kotlin. If never finish indexing, it anyway a bug and worth to report
a

Animesh Sahu

11/14/2020, 9:43 AM
2.8Gigs is taken by Intellij steadily after first minute actually, I waited for about 4 mins 😛 (probably should waited for more). That's why I actually asked for the general approximation that it need to properly highlight things -> For how much should I increase the heap size?
d

dmitriy.novozhilov

11/16/2020, 7:26 AM
For comfortable work with Kotlin project I usually give 8 GB of heap to IDEA. Usually (when everything already indexed and persisted on disk) there are only ~2 GB consumed. But it raises to 5-6 when I open another IDEA window with same project on other branch *I just opened IDE and it consumes only 630 MB. But it's without any actual work today Update: after few hours of work IDEA consumes ~2.5 GB in idle state and ~4.5 GB when running tests
👍 2
☝️ 1
2 Views