In recent builds I've noticed my computer fan going on when doing nothing.
If I turn on IDEAs "Power Save Mode" the CPU level goes down to almost nothing.
I did some analysis using VisualVM and it appears to be spending most of its time in:
which in turn is spending most of it's time in recursive calls to:
which spends probably most of its time repeatedly in:
- org.jetbrains.plugins.scala.lang.psi.impl.ScalaFileImpl.getViewProvider(); and
Instinctively it seems odd that the highlighting code should be doing anything CPU intensive if no editing is taking place. The CPU continues to be used apparently for ever and well beyond the time it takes to highlight the code that is being displayed at the time.
I've attached a VisualVM snapshot file.
I was using the latest Scala plugin 0.4.1273 but I've also noticed the same behaviour for the last few builds of the plugin and it may have been an issue for some time that I just haven't noticed.