[Kde-pim] Review Request: Fixed bad performance during POP3 message download.

Allen Winter winter at kde.org
Sun Aug 21 21:50:38 BST 2011


On Sunday 21 August 2011 1:55:54 PM Thomas McGuire wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102353/#review5892
> -----------------------------------------------------------
> 
> 
> Thanks a lot, I just committed this patch to master.
> FYI, the unit test still passes :)
> 
> BTW, there is KBiHash or boost bimap, which could have been used instead of two maps, but that's fine.
> 
> Can anyone commit/merge/cherry-pick this to the 4.7 branch, please? I don't have a checkout of that at the moment.
> 
Confusion.  How could commit to master but not have a 4.7 branch?
git checkout 4.7
git cherry-pick -x <commit>




> - Thomas
> 
> 
> On Aug. 20, 2011, 7:33 a.m., Oldřich Jedlička wrote:
> > 
> > -----------------------------------------------------------
> > This is an automatically generated e-mail. To reply, visit:
> > http://git.reviewboard.kde.org/r/102353/
> > -----------------------------------------------------------
> > 
> > (Updated Aug. 20, 2011, 7:33 a.m.)
> > 
> > 
> > Review request for KDEPIM.
> > 
> > 
> > Summary
> > -------
> > 
> > The code uses QMap::key(value, default_value) to search for the right message ID. According to Qt documentation, the method is:
> >     
> >   This function can be slow (linear time), because QMap's internal data structure is optimized for fast lookup by key, not by value.
> > 
> > For lot of emails, the function is really really slow, because it tries to match every value until it finds one.
> > 
> > 
> > This addresses bug 277597.
> >     http://bugs.kde.org/show_bug.cgi?id=277597
> > 
> > 
> > Diffs
> > -----
> > 
> >   resources/pop3/jobs.h 53148d73b04ca400d81823ee8def87938b5b7f24 
> >   resources/pop3/jobs.cpp 3ce9b100132fc5a148c24dc65d639e5b8fff9c3f 
> >   resources/pop3/pop3resource.h 14aba203445e165dd3c8e856738d5f607ca06415 
> >   resources/pop3/pop3resource.cpp cc4f4203b195df1552cc2758301d54125ff3a2bd 
> > 
> > Diff: http://git.reviewboard.kde.org/r/102353/diff
> > 
> > 
> > Testing
> > -------
> > 
> > 
> > Thanks,
> > 
> > Oldřich
> > 
> >
> 
> _______________________________________________
> 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/

-- 
Allen Winter | allen at kdab.net | Software Engineer
KDAB (USA), LLC, a KDAB Group company
Tel. USA +1-866-777-KDAB(5322), Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
_______________________________________________
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