Review Request: optimize kcolorscheme consting time: avoid calculating luma for the same colors multiple times

Commit Hook null at kde.org
Wed Dec 7 21:25:19 GMT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103348/#review8789
-----------------------------------------------------------


This review has been submitted with commit d974f5f7f40dc0d417aa38968358db2810deebb0 by Nick Shaforostoff to branch KDE/4.7.

- Commit Hook


On Dec. 6, 2011, 5:53 p.m., Nick Shaforostoff wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103348/
> -----------------------------------------------------------
> 
> (Updated Dec. 6, 2011, 5:53 p.m.)
> 
> 
> Review request for kdelibs.
> 
> 
> Description
> -------
> 
> pretty straightforward and small optimization of kde apps startup time:
> avoid calculating luma for the same colors multiple times.
> 
> callgrind shows it is called 4503 times
> instead of 12087 at startup of kwrite, which is 1.5%.
> 
> 
> Diffs
> -----
> 
>   kdeui/colors/kcolorutils.cpp efe8cdd 
> 
> Diff: http://git.reviewboard.kde.org/r/103348/diff/diff
> 
> 
> Testing
> -------
> 
> kwrite starts fine with the new kdeui lib
> 
> 
> Thanks,
> 
> Nick Shaforostoff
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20111207/87a2a3aa/attachment.htm>


More information about the kde-core-devel mailing list