Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Performance Issue - Slow Compile Process

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

like image 527
Raga Pinilih Avatar asked Feb 20 '26 17:02

Raga Pinilih


1 Answers

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

like image 63
mguillermin Avatar answered Feb 23 '26 06:02

mguillermin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!