IntelliJ IDEA: the first compilation takes a lot of time

Related searches

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):

  • Eclipse: 30s

  • IntelliJ IDEA with Eclipse compiler 45s

  • IntelliJ IDEA with javac compiler: more than 10 minutes (!)

Number of java classes ~5000

Change the following setting (Build process heap size) to some large value

compilation slow? – IDEs Support (IntelliJ Platform), Compiling a scala module is very slow for me. I write a scala spec and every time I chnage something small and want to run it I have to. I see a lot of messages about loading scala library files (why aren't they loaded just once?) all the start- up and JIT warm-up costs (after the first couple of compilations). The default heap size reserved for Scala compilation inside IntelliJ IDEA is 1024MB (see the “Scala Compiler Server” preference page under “Preferences” > “Build, Execution, Deployment” > “Compiler” > “Scala Compiler” > “Scala Compile Server”). While this default is good to get started, as modules grows in size and

You can use the Eclipse compiler from IntelliJ IDEA.

Enable the Eclipse compiler from Settings -> Compiler -> Java Compiler: "Use compiler:" (change from Javac to Eclipse).

update: Here's my compilation times for a full rebuild, using IntelliJ IDEA 13 on a fairly large project:

Using javac 1.7.0_45 to compile java sources
Compilation completed successfully with 60 warnings in 27 sec

Using eclipse compiler to compile java sources
Compilation completed successfully with 652 warnings in 26 sec

So there seems to be something strange with your setup.

How can I speed up compilation (Java & Kotlin)?, IntelliJ, on the other hand, takes at least 2-4 *seconds* for (re-)compiling And, although I love the great features of IntelliJ, this is pretty much a show big difference, never getting down to milliseconds compile time like in Eclipse. First compilation using javac took 18 seconds, after a one letter change 5� Tab is not detached when crossing the IDEA frame: Performance: IDEA-235635: Idea freezes with AppleSystemUIFont when Event Log is opened (MultilineTreeCellRenderer takes a lot of time doing stringWidth) Cosmetics: IDEA-238209: Create Desktop Entry - Result wording badly structured: User Interface. Accessibility: Bug: IDEA-235804

Answer from IntelliJ Support:

Try 13.0.2 from http://confluence.jetbrains.com/display/IDEADEV/IDEA+13+EAP .

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

Compile taking a long time and compiling lots of , I am running build 3214, jdk 1.5 and windows 2000. When I change a file and initiate a compile this can take 8 to 10 minutes. And this Migrate from Eclipse to IntelliJ IDEA. Switching from Eclipse to IntelliJ IDEA, especially if you've been using Eclipse for a long time, requires understanding some fundamental differences between the two IDEs, including their user interfaces, compilation methods, shortcuts, project configuration and other aspects.

You can also increase the heap size in the file Intellij IDEA\bin\idea.exe.vmoptions. For example try these (assuming you have a lot of RAM):

-Xmx6g
-Xms6g
-XX:MaxPermSize=512m
-ea
-server
-XX:+UseConcMarkSweepGC

Having done this, you need to start idea with idea64.exe because the default 32bit version will not be able to use the big ram.

IDEA 13 slow compilation – IDEs Support (IntelliJ Platform), We've got a project which is about 10.000 classes when compiled.Compilation takes a very long time (15 to 30 minutes or more), compared In the past couple of months we've been talking a lot about what new features users can find in IntelliJ IDEA 13. Today we'd like to take a break from that and speak a little bit about what it brings to the plugin authors, so this post will give you an overview of notable changes in the Plugin DevKit.

  1. We put our projects on a SSD drive and this speed up the IDEA rebuild significantly (about half the time).
  2. I don't think you are comparing the same thing IDEA <-> eclipse somehow eclipse must have done some work already in the background or has a cache somewhere but I don't know eclipse well.

IntelliJ IDEA takes a long time to start. What can be done to , IntelliJ IDEA takes a long time to start. like run, build, But when doing the exercises and stopping and doing Every specific case should be examined separately as there are a lot of different reasons for such behavior. IntelliJ IDEA 2018.1.1 the first bug-fix update for the recently released IntelliJ IDEA 2018.1 is here! Get this new version right now from our website or update via ToolBox App. Use the Check for updates action to receive the latest update if you are working with IntelliJ IDEA 2018.1 or IntelliJ IDEA 2018.1.1 EAP.

It takes less than a second when I run python code in IntelliJ IDEA, how do I speed this process for Java? seems like a lot. when it's the first time I run

Generally there are many activities aiming to improve compilation time on-going both in Kotlin/Native and in general Kotlin. They include dead code elimination compiler analysis (on review), deserialization optimizations, frontend IR work and probably some other optimizations. Team is focused on compilation time improvements, stay tuned.

IntelliJ IDEA, with the Scala plug-in, gives us an excellent base for developing robust applications. In this article, we will discuss how to set up IntelliJ, primarily with SBT, so that we can keep it happy while leaving enough resources for running our application. We should be aware that setting up IntelliJ for use with Scala takes a bit of

Comments
  • Close all other projects?
  • A couple hundreds should compile in ~10 seconds on a modern computer, what is your configuration?
  • Is a virus scanner perhaps scanning all JARs in that project?
  • If it is noticeably slower, then report it as an issue.
  • Update: something definitely broken. They can fix it, if you report it...