How can I reduce compile times for my project?

0
9
Asked By SparklyPineapple21 On

I'm working on a larger project that takes about two minutes to compile on our build server. I'm searching for ways to optimize compile times. Do you use caches for class files between builds, and if so, how do you manage to keep them from becoming stale? Has anyone looked into profiling the compiler to see where the most time is being spent?

1 Answer

Answered By ChillVibes24 On

Honestly, is 2 minutes that much of a problem? I mean, how fast does it really need to be? What issues does this extra time cause you? If it’s a big concern, maybe try looking into Bazel for better performance.

DevWhiz89 -

The whole build pipeline really needs to be under 10 minutes, and that includes a lot like frontend builds and various tests. We've optimized a lot, but Java compilation is still a significant step that slows things down.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.