[Korganizer-devel] [Bug 170993] Switching calendar views takes more than 20 seconds eating 100% CPU

Eduardo Habkost ehabkost at raisama.net
Sat Sep 13 21:41:01 CEST 2008


http://bugs.kde.org/show_bug.cgi?id=170993





--- Comment #1 from Eduardo Habkost <ehabkost raisama net>  2008-09-13 21:41:00 ---
I've noticed reloadTodos() is being called twice because there are two TodoView
objects, so it is expected anyway.

The interesting part is: the first reloadTodos() is "quick": it takes two
seconds to complete. The second reloadTodos() call is the one that takes almost
20 seconds. However, both are emitting 1539 dataChanged signals.

Completing the backtrace I've sent previously, this is the continuation of the
call path to  the reloadTodos() call that is taking longer:

#23 0x010a7c37 in KOTodoModel::reloadTodos (this=0x9d91228) at
/mnt/common/code/kde/svn/trunk/KDE/kdepim/korganizer/views/todoview/kotodomodel.cpp:258
#24 0x010b11fe in KOTodoView::updateView (this=0x9dc6f68) at
/mnt/common/code/kde/svn/trunk/KDE/kdepim/korganizer/views/todoview/kotodoview.cpp:346
#25 0x010d60c2 in KOViewManager::updateView (this=0x9ba14e8, start=@0xa5d1dac,
end=@0xa5d1dc4)
    at
/mnt/common/code/kde/svn/trunk/KDE/kdepim/korganizer/koviewmanager.cpp:197
#26 0x010cc27a in CalendarView::updateView (this=0x9ba0fb8, start=@0xa5d1dac,
end=@0xa5d1dc4)
    at
/mnt/common/code/kde/svn/trunk/KDE/kdepim/korganizer/calendarview.cpp:795
#27 0x010cc2e3 in CalendarView::showDates (this=0x9ba0fb8,
selectedDates=@0x9ae3518) at
/mnt/common/code/kde/svn/trunk/KDE/kdepim/korganizer/calendarview.cpp:1653
#28 0x010d1cba in CalendarView::qt_metacall (this=0x9ba0fb8,
_c=QMetaObject::InvokeMetaMethod, _id=175, _a=0xbfc1d2ec)



(Yes, I have more than 1500 TODO items on my calendar. I keep them around, as a
history of the tasks I've completed in the past. I usually set up filters to
hide the completed items, so I don't see all of them.   8)


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Korganizer-devel mailing list