QT_NO_STL in KDE4

Alexander Neundorf neundorf at kde.org
Wed Sep 13 17:25:26 BST 2006


On Wednesday 13 September 2006 17:35, Dirk Mueller wrote:
> On Wednesday 13 September 2006 16:56, David Faure wrote:
> > Wow that's a large difference if it's indeed only due to -DQT_NO_STL.
> > Surprising, for just a few typedefs....
>
> A few typedefs?
>
> $ cat st.h:
> #include <string>
> #include <map>
> #include <iterator>
> #include <list>
> $ g++ -c st.h -o - -E | wc -c
> 780531
>
> so each and every compilation unit gains 780kb (!) of source code just by
> not using QT_NO_STL. we have about 1500 compilation units in kdelibs, which
> means just this one little #define saves around 1 GB of data the compiler
> has to parse, to interpret, stuff into the main memory, and then throw away
> for no reason at all.

Your numbers are impressive.
9:02 vs. 6:16 is *significant* (on my box it takes one hour...).

So do we have a decision ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net




More information about the kde-core-devel mailing list