[distcc] can distcc speed up the compilation of a single compilation unit?

Mihai Moldovan ionic at ionic.de
Sat Sep 4 19:55:04 MDT 2010


Hi Nathan,

I am unsure about what you refer to by "compilation units".

distcc redistributes every single file to different locations (distcc 
hosts).
The linking is (naturally) done on the host machine (that one 
redistributing, too).
Preprocessing can either be done on the local machine (normal mode), or 
on the other distcc hosts (distcc pump mode).

It cannot split up a file and distribute chunks of that to different hosts.

So, unless you've got only one file, distcc (at least theoretically) 
speeds up the build process.

If this is not what you asked for, please try explaining it again, as I 
could only guess what you really meant.

Best regards,


Mihai



* On 05.09.2010 03:38 AM, Nathan Ridge wrote:
> Hello,
>
> I just came across distcc and it attracted my interest. I have a
> question about how it works: can it speed up the compilation of a single
> compilation unit, or can it only speed up the compilation of a project
> that involves several compilation units?
>
> In other words, does distcc simply distribute compilation by having
> different machines compile different compilation units and then linking
> them together at the end (in this case each machine is still compiling a
> complete compilation unit), or does it somehow split up a single
> compilation unit into chunks and give each chunk to a different machine?
>
> Thanks,
> Nate.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6111 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.samba.org/pipermail/distcc/attachments/20100905/74a6c67f/attachment.bin>


More information about the distcc mailing list