View Single Post
  #4   Spotlight this post!  
Unread 01-05-2016, 08:40 PM
tragic tragic is offline
Programming Mentor
FRC #4633 (Bobcats)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Calgary Alberta
Posts: 19
tragic is an unknown quantity at this point
Re: Speeding up C++ compile times

Quote:
Originally Posted by MrRoboSteve View Post
One downside of the new control system was the C++ toolchain change, which has much slower compile times than the previous tooling. It's at the point where we are considering switching to Java.

Are there tweaks that teams are using to improve compile times?
Basically what @kiettyyyy said. Enabling parallel builds is a very simple way to drastically improve compile times. This has very good scaling as you go up in cores. So a high core count processor like an Intel i7-5820k where you have 12 logical cores (6 physical + 6 virtual) enables you to compile 12 different files of a project at the same time.

I use this method in my personal projects along with a 28 core 56 thread compiling/rendering server. It breezes through my game engine which is approximately 900000 lines of code so its still a baby engine but it takes quite some time to compile in single threaded mode.

Last edited by tragic : 01-05-2016 at 08:42 PM. Reason: Fixed an error.
Reply With Quote