qt-interest@trolltech.com
[Top] [All Lists]

RE: How to minimize the compiling time without care of speed or size of

Subject: RE: How to minimize the compiling time without care of speed or size of the exe?
From: "Scott Aron Bloom"
Date: Wed, 28 Mar 2007 00:01:06 -0700
> 
> Recently I stumbled over another "trick":
> Using larger compilation units can help if the total
> size is reasonably chosen. I.e. something like
> 
> lump.cpp:
> #include "foo.cpp"
> #include "bar.cpp"
> #include "baz.cpp"
> 
> with lump.cpp added to the project and {foo,bar,baz}.cpp
> set as "Exclude from build". The idea is that a C++
> compilation unit consists usually of a few hundred lines
> of "user" code, yet #include <vector> + #include <string>
> pull in ~20000 lines of code. With "lumping" as above
> the ratio user/system improves.
> 
> Andre'
> 
Unfortunately... Andre is right on here.  The way that stl templates have been 
implemented is so bloated code parsing can take for ever with PCH turned off, 
or on template headers where PCH has less effect

Scott

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>