Review Request: little faster sycoca

Commit Hook null at kde.org
Tue Oct 4 15:48:01 BST 2011


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


This review has been submitted with commit 85817e3070f2ea750fb1f9563ed881b686dec892 by Jaime Torres to branch frameworks.

- Commit Hook


On Sept. 29, 2011, 6:25 p.m., Jaime Torres Amate wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102723/
> -----------------------------------------------------------
> 
> (Updated Sept. 29, 2011, 6:25 p.m.)
> 
> 
> Review request for kdelibs.
> 
> 
> Description
> -------
> 
> Using this way to build a for loop: for (const_iterator it=list.constBegin, end=list.constEnd ; it != end; ++it)
> and replacing the count of bits with the QBitArray method for doing that.
> callgrind says:
> before: 2984 calls to constBegin, 0,00%. 2960531 calls to constEnd, 2.33%
> after: 2921 calls to constBegin, 0,00%. 2921 calls to constEnd, 0.00%
> 
> before: calcDiversity, 55.83%  (debug enabled)
> after: calcDiversity, 14,46%  (debug enabled)
> 
> buildsycoca is still not faster than light, but it is only a four lines patch.
> 
> 
> Diffs
> -----
> 
>   kdecore/sycoca/ksycocadict.cpp 17ed9ac 
> 
> Diff: http://git.reviewboard.kde.org/r/102723/diff/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Jaime Torres Amate
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20111004/6ebd7c69/attachment.htm>


More information about the kde-core-devel mailing list