Parallel compilation in jtmake

TwineCompile - Cut C++Builder compile times by up to 50x!
Post Reply
tzvif
Posts: 5
Joined: Tue Feb 01, 2022 5:05 am

Parallel compilation in jtmake

Post by tzvif »

I'm trying to improve our CI build performance. Our application consists of around 1,000 projects, and the build machine has a 16-core CPU. I'm trying to find a way to fully utilize it to speed up the build.

I noticed that jtmake supports the -parallel option when building a project group, but testing it on a project group containing about 200 projects doesn't seem to have any noticeable impact. While monitoring the build in Task Manager, I observed that only one project was being compiled at a time.

Many of our projects are very small (2–5 source files), while others are larger (30+ source files).

I also found forum posts stating that running multiple jtmake instances in parallel for different projects is not supported.

So I would like to know:
  • What exactly does the `-parallel` option do?
  • Is there a recommended way to utilize all 16 cores when building an application consisting of hundreds of relatively small projects?
Thanks!
jomitech
Site Admin
Posts: 2211
Joined: Wed Oct 08, 2008 12:23 am

Re: Parallel compilation in jtmake

Post by jomitech »

The -parallel option does exactly what you are expecting it to do - it will compile multiple projects at the same time, allowing small projects to use all cores. This is what this option is for.

The caveat is that it's only supported on C++Builder 11.0 (or newer) project groups. If you're compiling projects using an older IDE version, parallel project builds are unfortunately not supported.

If you are using 11.0 or newer, it should work correctly. If this is the case, can you send the output of the jtmake command when you add -parallel to support@jomitech.com?
Jon
Post Reply