[Kde-pim] KOrganizer4 Is Sooo Slow

Cornelius Schumacher schumacher at kde.org
Mon Nov 5 01:51:16 GMT 2007


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?

Why don't we convert the datetimes to UTC when saving the event?

>         if ( event->allDay() ) {
>           end.setDateOnly( true );
>         } else {
>           end = end.addSecs(-1);
>         }
>         if ( end >= kdt ) {
>           eventList.append( event );
>         }

-- 
Cornelius Schumacher <schumacher at kde.org>
_______________________________________________
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