[Kde-pim] KOrganizer4 Is Sooo Slow

David Jarvie lists at astrojar.org.uk
Mon Nov 5 15:20:02 GMT 2007


 Am Montag, 5. November 2007 schrieb Cornelius Schumacher:
> On Monday 05 November 2007 02:38:33 Allen Winter wrote:
> > Finally we know why KOrganizer is so slow.
> >
> > In CalendarLocal::rawEventsForDate:
> >       if ( event->dtStart() <= kdt ) {
> >         KDateTime end( event->dtEnd().toTimeSpec( event->dtStart() )
> );
>
> The toTimeSpec call looks like it could spend a lot of time. Is this
> actually the case?

toTimeSpec() is not guaranteed to be fast, although I put in as many
optimisations as I could into the conversion functions. Each KDateTime
instance caches both the UTC value and the last time zone the instance was
converted to, whenever any conversion is done. So recalculating the UTC
value or last time zone conversion will be very fast.

-- 
David Jarvie.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm

_______________________________________________
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