<@U520MH6G4> If compiling a simple Java file takes...
# announcements
j
@ijp If compiling a simple Java file takes 15 seconds, I strongly suspect something wrong with your environment (defective hard drive maybe?). Have you tried to build on another computer? Thread in Slack Conversation @cedric and @ijp I've tried that code on Linux CentOS 6.8 and it takes 200ms to 1.2 seconds on a very slow machine (dual core with 8GB of RAM and a semi-busted hard drive). OSX Sierra I've just tested it on, and it takes me 20 seconds. Steps to reproduce: File -> New Module -> Kotlin -> Kotlin JVM, Next, Select JDK 1.8 for the module SDK Now it creates a project with a blank
src
directory. I create a
Test.kt
file and add
Copy code
fun main(args: Array<String>) {
	println("test")
}
Right click, run
TestKt
and the first time it takes 20 seconds and 675ms. Second time is obviously instant since it doesn't have to do any recompilation, Change
test
to
test2
and it now takes 21 seconds. I have some bigger projects with 20k-50k lines of Kotlin and those are around 10 seconds, this simple "Hello World" type of program seems to take twice as long on the same machine. My MacBook Pro is a 2011 model with Quad Core 2.4 with 16GB RAM @orangy , do you or anyone on the team use OSX, I'm curious to see if it's just @ijp and myself who are experiencing very slow compile times in IntelliJ with a simple 3 liner Kotlin application.