javaeclipseintellij-idea

IntelliJ IDEA: the first compilation takes a lot of time


I'm using IntelliJ IDEA to develop my Java application. I'm frustrated with the fact that the first compilation of a project (or a complete rebuild) takes very long, about 15 min (and is very CPU-intensive). The project is composed from a couple of hundreds of Java classes, but compiling it with Eclipse just need 1-2 minutes.

Are there any compilation options that I can set in order to speed up this step?

UPDATE

My configuration: SSD, 64GB RAM, Xeon E5-1660, Win 7 Ultimate

Compilation time (Rebuild):

Number of java classes ~5000


Solution

  • Answer from IntelliJ Support:

    Disable the option to clean output directories on rebuild in the compiler settings.