Revision d974f5f...

Go back to digest for 11th December 2011

Optimization in KDE Base

Nick Shaforostoff committed changes in [kdelibs/KDE/4.7] /:

pretty straightforward and small optimization of kde apps startup time:
avoid calculating luma for the same colors multiple times.

callgrind shows it is now called 4503 times
instead of 12087 during startup of kwrite ( 1.5% integral cost).

avoid allocating several temp instances of QByteArray for the same char array

REVIEW: 103348

File Changes

Modified 2 files
  •   kdecore/kernel/kstandarddirs.cpp
  •   kdeui/colors/kcolorutils.cpp
2 files changed in total