[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: KDE: Speed issues



>            set the -no-g++-exceptions flag when building qt 

  already being done
 
>            and set the folowing options for all qt and kde: 
>            -03 
>            -mpentiumpro (or -march=pentiumpro for ppro only objs) 

the configure script finds the best settings for building based on what
KDE recommends.

 
>            the exceptions optimization literally reduces the size of
>            everyting related to qt by several megs a piece with no
>            detriemntal effects. -03 is important because it
>            turns on inlining, which is a big win for C++ code with
>            lots of tiny functions. And optimizing for modern chips should
>            be standard for anyone. These changes sped up my KDE load time
>            by 50%, and made the whole thing feel much "snappier" and 
>            smoother. Don't let KDE2 get a rep for slowness just because
>            you used lousy compiler options. (and yes, I posted something
>            similar to the kde2.0 article, but I'm going to repeat it until
>            the packagers get it right)
> 
> Is he right? Could I help my machine by doing own builds for some specific
> packages? Which ones? (I doubt that -mpentiumpro will help me on my
> Pentium MMX, though.)

the exceptions bit is very well known.  As for the -O3...  KDE has it set
to use -O2 by default.  I've always gone with default unless someone upstream
recommends something else.  I've found this to always be  the best thing to
do.  

Ivan

-- 
----------------
Ivan E. Moore II
rkrusty@tdyc.com
http://snowcrash.tdyc.com
GPG KeyID=90BCE0DD
GPG Fingerprint=F2FC 69FD 0DA0 4FB8 225E 27B6 7645 8141 90BC E0DD



Reply to: