[Kde-pim] Review Request 119933: Optimize: Share set of \SEEN flag across items.

Milian Wolff mail at milianw.de
Tue Sep 2 10:00:37 BST 2014



> On Sept. 2, 2014, 8:33 a.m., David Faure wrote:
> > Looks ok to me. I didn't know about _ _ cplusplus, do compilers set that once they implement *all* of C++11?

No, afaik it gets set by most compilers once you enable C++11 mode (whatever subset that gives you). MSVC has no special flag you need to set, but it doesn't set `__cplusplus` to 2011 either (yet). GCC and Clang have threadsafe static initialization even without C++11. Not sure about ICC or other compilers though.


- Milian


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


On Sept. 1, 2014, 2:49 p.m., Milian Wolff wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119933/
> -----------------------------------------------------------
> 
> (Updated Sept. 1, 2014, 2:49 p.m.)
> 
> 
> Review request for KDEPIM-Libraries and David Faure.
> 
> 
> Repository: kdepimlibs
> 
> 
> Description
> -------
> 
> Most items just have a single \SEEN flag in their list of flags.
> Currently, we share the \SEEN flag, but not the list itself. By
> special-casing this extremely often occurring case, we can decrease
> the memory consumption easily. In my case it's a difference of ca.
> 7MB (171MB before vs. 164MB after).
> 
> 
> Diffs
> -----
> 
>   akonadi/protocolhelper.cpp 3d496667fa622cac2dda7d5a0ca4c92b5a59d2fe 
> 
> Diff: https://git.reviewboard.kde.org/r/119933/diff/
> 
> 
> Testing
> -------
> 
> ran it before and after this patch and compared the memory consumption. That went down noticeably. Also added a static counter to compare cache hits/misses temporarily, which showed this cache is easily hit ca. 40k times and only missed 4k times (so a 10:1 ratio, not bad at all :))
> 
> 
> Thanks,
> 
> Milian Wolff
> 
>

_______________________________________________
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