[Development] Compilation time very slow

Robert Knight robertknight at gmail.com
Thu Oct 24 19:30:25 CEST 2013


> But seriously - how about pre-compiled headers? Is anyone using this compiler feature? Does it really help?

Yes and yes. There is a huge amount of redundancy in compilation of
typical C++ projects. YMMV but effective use of
precompiled headers can help significantly.

There are a couple of rules of thumb on Windows:

- IO is slow
- Spawning processes is slow

Anything which speeds up IO or reduces the amount of IO during a build
tends to have a disproportionate impact on Windows
compared to Linux/Mac.

This is how many of the guidelines for speeding up Chromium builds for
example (see http://www.chromium.org/developers/how-tos/build-instructions-windows#TOC-Accelerating-the-build
)
work.

Regards,
Rob.

On 24 October 2013 16:14, Diego Iastrubni <diegoiast at gmail.com> wrote:
>
> On Wed, Oct 23, 2013 at 7:04 PM, Thiago Macieira <thiago.macieira at intel.com>
> wrote:
>>
>> 3) Don't use Windows (the operating system and filesystems are too slow)
>>  3.b) don't use MinGW (it uses sub-processes a lot, which are slow on
>> Windows)
>
>
>
> LOL...
>
> But seriously - how about pre-compiled headers? Is anyone using this
> compiler feature? Does it really help?
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>



More information about the Development mailing list