[Kde-pim] Review Request 120552: Optimization: skip QSet::toList() conversion just to check for emptiness.

Milian Wolff mail at milianw.de
Sun Oct 12 14:56:12 BST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120552/#review68288
-----------------------------------------------------------

Ship it!


Ship It!

- Milian Wolff


On Oct. 11, 2014, 8:56 a.m., David Faure wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120552/
> -----------------------------------------------------------
> 
> (Updated Oct. 11, 2014, 8:56 a.m.)
> 
> 
> Review request for KDEPIM-Libraries and Dan Vrátil.
> 
> 
> Repository: kdepimlibs
> 
> 
> Description
> -------
> 
> This code is called very often while loading a folder (with threading enabled)
> 
> Maybe in frameworks these methods (mimeTypesMonitored etc.) should return QSet
> to avoid the conversion altogether?
> 
> 
> Diffs
> -----
> 
>   akonadi/entitytreemodel_p.cpp 8d24973494b78726bdeb4f01990aeab139c4d745 
>   akonadi/monitor.h 2fb6bc21bbc84b21ed1c8ae943ecb0cc636db615 
>   akonadi/monitor.cpp 2759b3464af4ff082c183ef38576612778c844e0 
> 
> Diff: https://git.reviewboard.kde.org/r/120552/diff/
> 
> 
> Testing
> -------
> 
> Between this and https://git.reviewboard.kde.org/r/120553/, loading a 13k-emails folder is much much faster here.
> 
> 
> Thanks,
> 
> David Faure
> 
>

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list