title: How to speed up Scala IDE?
body: <p>I'm working with a fairly large project, managed by SBT (full recompilation time 150+ sec). I'm using latest Scala IDE plugin (4.0.0-M1) and I can barely edit any large enough source file - each time I type something, eclipse freezes completely for a couple of seconds. Same happens when I save my changes. It also seems that editing file cause more and more heavy performance degrade. Restarting Eclipse helps, but not for long. To work this around, I have to open a .scala source file in text editor via Eclipse, losing all benefits of Scala editor.</p>
  <h3>Additional info</h3>
  <p>PC is good enough - Intel Core i5-3570 with 16 GB RAM</p>
  <p>I'm using Windows 7 x64, Scala 2.10.3, SBT 0.13.1 and Oracle JDK 1.7.0u45</p>
  <p>Using profiling with Java VisualVM shows that apparently CPU is used by Scala presentation compiler:
  <img src="https://i.stack.imgur.com/zFPj8.jpg" alt="Java VisualVM output" /></p>
  <p>Eclipse's heap status indicator never goes beyond a half.</p>
  <p>Auto-build, implicits highlight and mark occurences are all turned off</p>
  <p>Configuration from <code>eclipse.ini</code> (3 last flags are added from <a href="http://scala-ide.org/docs/current-user-doc/advancedsetup/index.html" rel="noreferrer">http://scala-ide.org/docs/current-user-doc/advancedsetup/index.html</a>):</p>
  <pre><code>-vm
  D:\ProgramFiles\Java\jdk1.7.0_45\bin\javaw.exe
  -vmargs
  -Dosgi.requiredJavaVersion=1.6
  -Xms1024m
  -Xmx2048m
  -Xss1M
  -XX:MaxPermSize=1024M
  -server
  -XX:+DoEscapeAnalysis
  -XX:+UseConcMarkSweepGC
  -XX:+UseCompressedOops
  </code></pre>