Gradle is soo slow
# kotlin-native
k
Gradle is soo slow
s
Gradle isn't the bottleneck, the compiler is just slow.
💯 1
1
k
Why then "Starting Gradle..." takes long time on first run ?
s
Oh, that's just Gradle starting the daemon. It'll be significantly faster on subsequent runs
n
Another major reason Gradle is slow to startup is that it is a JVM application. All apps running on the JVM take a while to startup because the JVM has a lot of stuff to load, before the virtual machine can run a application. Subsequent runs of a application are quicker once the JVM has "warmed up".
k
I'm not getting why Jetbrains really want to dependent on JVM soo much. In compiler side I get it Kotlin uses idea's premade PSI and IR which already written in Java. But in build tool they could go non-jvm. After things made: "we have this/that bottleneck"