I'm working on a project with about 1 million lines of code and I'm wondering what kind of hardware I'd need to compile it efficiently. Does anyone have recommendations or experiences to share?
5 Answers
If you're focused on Java, pretty much any modern computer can handle it without issue. Do you have a current setup that's slow? That might help to figure out if you need an upgrade or not!
I have around 106,000 lines of code and it compiles in about 8 seconds on my workstation with a powerful Intel processor and 128 GB RAM. If you're serious about speed, investing in a decent machine pays off!
Honestly, even something simple like a Raspberry Pi might get the job done, but it would be super slow. You'd be waiting forever to compile a large codebase on that!
For faster compilation, the more cores you have, the better. A decent quad-core laptop with 8 GB of RAM should work just fine! Plus, remember that the bottleneck might be in testing or other build processes, not just the compilation itself.
I use a fairly recent laptop, and compiling a project with 110,000 lines takes about 40 seconds with Maven. If you utilize tools like JRebel, instant changes can be done while coding, which is sweet!
Yeah, unless you're in no rush at all, a Pi might just take until the end of time to finish.