Bug 169318 - large ics file slows calendar
Summary: large ics file slows calendar
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-17 12:48 UTC by Peter Lewis
Modified: 2008-10-24 12:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lewis 2008-08-17 12:48:38 UTC
Version:           kontact 1.3 (using KDE 4.1.0)
Installed from:    SuSE RPMs
Compiler:          gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux) 
OS:                Linux

I have changed from KDE 3 to KDE 4.1 in openSuse 11.0.
When I import my 441.5 KByte .ics calendar file into kontact, kontact stops responding while hogging up to 96% of cpu time.
It will eventually sort itself out and start responding, usually in a couple of minutes, but when I change the week viewed it seizes again.
If I uncheck the calendar resource, then it responds quite normally.
My calendar file is on localhost and contains 137 todos and 1147 events.
I have gone back into 3.5 and archived most of the events. I now have just 228 events and the calendar is responding just fine.
It still begs the question, why does kontact in 3.5 handle 1147 events with no problem but kontact in 4.1 seize up?
Comment 1 Allen Winter 2008-08-28 17:07:52 UTC
Peter,

A good amount of work has gone into making KOrganizer faster.
Please try again when you can with the KDE4.1.1 release.
Comment 2 Peter Lewis 2008-08-28 17:38:54 UTC
Allen.

The version of KDE as reported from the help menu item is:
Version 4.1.1 (KDE 4.1.0 (4.1 >= 20080722)) "release 26.5"

So it looks as if I am in 4.1.1 already.

As in my post, when I reduced the size of the calendar file, all works fine.
It is when the number of events is 1147 that it is so slow.
Comment 3 Peter Lewis 2008-10-15 11:01:24 UTC
The calendar has slowed down again. It takes about 15 seconds to switch week being viewed. This timed between the clicking on the required week and the week highlight moving to the new week.
It also takes about 15 seconds to add an event to the calendar. Opening the new event dialogue is close to instantaneous but after the "OK" is clicked it takes about 15 seconds for the dialogue to close. It also takes about 15 seconds to delete an event.
Creation and removal of a to-do takes a similar time.
Comment 4 Peter Lewis 2008-10-15 11:48:16 UTC
I have found the cause!
I changed the Time Zone by going:
Settings:>Configure Calendar:>Time and Date:>Time zone:>Europe/London:>Apply
Then in the dialogue box I selected "Keep times".
This set up two time zones in the calendar file and slowed matters to a crawl.
I have corrected matters by repeating the change but selecting "Move times" in the dialogue box.
I now can only hope that Kontact remembers the settings!
The problem still remains for calendars that contain more than one timezone.
Comment 5 Peter Lewis 2008-10-23 09:23:15 UTC
Sorry, that was a red-herring!
It does appear to be calendar file size related.
It was taking about 20 seconds to display a different week. That is from the time that the alternative week was clicked, in the (in my case) 3 month calendar, to the time that the toolbar becomes responsive, as indicated by a blue border round the "today" button when the mouse is over it.
I have archived all entries up to 1 July 2008 (from October 2007) and now a similar change of week takes 6 seconds. Not fast but reasonable.
The .ics file that holds my calendar has gone from 70KB to 30KB.
Comment 6 Peter Lewis 2008-10-24 12:04:46 UTC
I have now upgraded to 4.1.2 and find a very much better response.

I can only assume that the problems have been resolved.
Well done all.