I’m just getting started with Kotlin and created the HelloWorld app sample listed on this site. When I run the app (not in debug mode), it runs fairly fast. But when I use Debug and run it, it takes several seconds before it hits the first breakpoint in the Intellij IDE, probably on the order of 10 seconds. If this is the kind of performance I am getting with just a simple HelloWorld app, I shudder to think what I am up against with a real app. So if in the end the amount of code is reduced by 20% but I end up taking 10 seconds to debug each time (and far worse for a real app), then clearly Kotlin hasn’t done anything of any value.
The sample doc is listed here:
This is a Kotlin/Java app.
I am running Intellij 2016.2 on a 2016 MacBook Pro. There are no plugins installed or anything else for that matter.
I also downloaded the latest verison of Kotlin (1.2) and compiled the helloworld app on the command line. It only took 3 seconds to compile. I even disabled the Make command in the project’s configuration settings so that there would be no need to compile. It would only need to run the existing compiled code in the debugger without compiling it. But that didn’t do anything. It still took 10 seconds for the app to run.
Is this 10 second startup time normal? If not, what can I do to speed it up?