Reputation: 107
Guys... I'm using play framework for more than 3 month now... I wonder how to speed up compilation speed, because now there is 1072 Scala sources and 606 Java sources in my project and the compilation can take more than 5 minutes... It's really stress me out.... Is there any solution beside upgrading my hardware....?
FYI This is my hardware specification : Processor: Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz (4 CPUs), ~2.4GHz Memory: 4096MB RAM Available OS Memory: 4000MB RAM Page File: 4615MB used, 3383MB available DirectX Version: DirectX 11
Upvotes: 3
Views: 1364
Reputation: 6795
4GB of RAM is your bottleneck. 8GB is minimum, and only recently I've started working with 16GB which took the stress off me.
From what I see your OS is some MS Windows. Working under some Linux-like system would let you mount the target
directory to RAM, thus speeding up the compilation, but that requires at least 16GB of RAM or working without graphical environment with less memory.
Upvotes: 0
Reputation: 4181
With such a high number of files, you should probably split your project into smaller modules.
The compilation will be more selectively triggered, and it will very more rarely need to compile the whole project.
You can find more information on how to create a multi-module project in Working with Sub-Projects section of the documentation
Upvotes: 4