cedric
04/20/2017, 2:58 PMjanvladimirmostert
04/20/2017, 4:17 PMsrc
directory.
I create a Test.kt
file and add
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.cedric
04/20/2017, 4:18 PMjanvladimirmostert
04/20/2017, 4:19 PMmvn package
and that's fairly quick.cedric
04/20/2017, 4:20 PMkotlinc
directly?janvladimirmostert
04/20/2017, 4:20 PMjanvladimirmostert
04/20/2017, 4:21 PMcedric
04/20/2017, 4:22 PMjanvladimirmostert
04/20/2017, 4:22 PMjanvladimirmostert
04/20/2017, 4:24 PMjanvladimirmostert
04/20/2017, 4:26 PMjanvladimirmostert
04/20/2017, 4:27 PMorangy
cedric
04/20/2017, 4:31 PMjanvladimirmostert
04/20/2017, 4:32 PMjanvladimirmostert
04/20/2017, 4:33 PMorangy
ijp
04/20/2017, 4:34 PMijp
04/20/2017, 4:34 PMijp
04/20/2017, 4:34 PMijp
04/20/2017, 4:35 PMjanvladimirmostert
04/20/2017, 4:35 PMorangy
Compilation completed successfully in 2s 646ms
janvladimirmostert
04/20/2017, 4:37 PMijp
04/20/2017, 4:38 PMjanvladimirmostert
04/20/2017, 4:39 PMijp
04/20/2017, 4:39 PMorangy
janvladimirmostert
04/20/2017, 4:44 PMjanvladimirmostert
04/20/2017, 4:56 PMijp
04/20/2017, 5:02 PMjanvladimirmostert
04/21/2017, 6:48 AM/etc/hosts
file to have the following:
127.0.0.1 localhost vlad.local grim.local
::1 localhost vlad.local grim.local
Obviously change grim / vlad to whatever your machine is named
sudo ifconfig en0 down
sudo ifconfig en0 up
And it goes from 20+ seconds to around 5 seconds which is a huge improvement.ijp
04/21/2017, 7:17 AM