DEV Community

Cover image for Kotlin Compile Time
Sam
Sam

Posted on

Kotlin Compile Time

Hi guys, new to Kotlin Development. Got a machine running windows 10, latest build of Android Studio

Simple Hello_world.kt file has insane build and run time, and I'm trying to reduce it

Something I saw was this:

Dev.To Recommendation

With all the insights gathered so far, the question still remains how to assign memory to the kotlinc process. For us, the following worked:
org.gradle.jvmargs=-Xmx8g -Dkotlin.daemon.jvm.options=-Xmx6g
We put this line into a file named gradle.properties, which is located right next to our gradlew executable (so, top-level in the project). This will assign 8GB of RAM to the gradle process, as well as another 6GB dedicated to the kotlin compiler.

These Changes did nothing for me

Let me know if there are any quick recommendations

My machine has 4 cores, 16 gigs of ram. I've got a decent pc, but I have worked in Java for a long time with eclipse as an IDE and never seen anything like this

Top comments (0)