[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: QT_NO_STL in KDE4
From:       Alexander Neundorf <neundorf () kde ! org>
Date:       2006-09-13 16:25:26
Message-ID: 200609131825.27069.neundorf () kde ! org
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic