kotlinc -include-runtime -d hello.jar hello.kt
or simply kotlic hello.kt
takes over 10 seconds with the below hello word program.
fun main() {
println("Hello, world")
}
I have used oracle's and openjdk's java 17. I am using kotlin 1.80. I have tested it on two Linux machines. I have installed kotlinc using the source and using SDKMAN! I have 4gb of RAM. The same incredibly slow compile time results.
When I compile using javac it is no more than a second for a far more complex project.
Is there any way to speed up the kotlin compile time without using IntelliJ IDEA or gradle?