IntelliJ eats up 100% of my processors (ok, its a Mac air, but still) even after loading the entire project workspace.
Any small changes on the code will not get the compilation errors reflected for one or minute or so.
At the same time, compiling on SBT will take also quite a while. I am thinking it is a problem related to the language structure and usage, can anyone confirm?
Two issues that I can raise:
- by using implicits, the compiler can not keep cached (old compiled) versions of classes as when use class hierarchy or static imports
- any new method added to a type will result in recompilation of every type that access the original one (this could be optimized? only static imports, implicit related ones or hierarchies need to be recompiled?)
Any other suggestions why compiling a scala project (even if "incrementally") takes so long for such a small project (+-200 classes, big implicits, lots of traits and so on)?