After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 420813 - Unnecessarily slow update/reopen of webcal calendars
Unnecessarily slow update/reopen of webcal calendars
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Calendar
2.32.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
evolution[gnome3]
Depends on:
Blocks:
 
 
Reported: 2007-03-21 01:22 UTC by Nicolas Bock
Modified: 2010-12-16 11:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
eds patch (4.82 KB, patch)
2010-12-16 10:54 UTC, Milan Crha
committed Details | Review

Description Nicolas Bock 2007-03-21 01:22:27 UTC
Please describe the problem:
Since I added a web calendar, evolution-data-server runs full cpu load when evolution is in offline mode.

Steps to reproduce:
1. Add web calendar to evolution's calendar: webcal://ical.mac.com/ical/US32Holidays.ics
2. Put evolution into offline mode
3. Log out of gnome
4. Log back in
5. With or without starting evolution, evolution-data-server is running at full cpu load.



Actual results:


Expected results:


Does this happen every time?
yes

Other information:
I ran strace on the evolution-data-server pid and got this:

poll([{fd=5, events=POLLIN}, {fd=7, events=POLLIN|POLLPRI}], 2, 0) = 0

I don't know whether that's helpful or not, but in case I can help please let me know how.
Comment 1 Milan Crha 2010-12-15 18:05:56 UTC
Similar downstream bug report from 2.32.1:
https://bugzilla.redhat.com/show_bug.cgi?id=659115

One difference though:
a) have "large enough" wabcal calendar (tested with 1MB file)
b) open evolution and that calendar there, to have e-calendar-factory start
c) close evolution
d) run evolution

See the e-calendar-factory high CPU usage when updating content of the webcal.
Comment 2 Milan Crha 2010-12-16 10:54:48 UTC
Created attachment 176522 [details] [review]
eds patch

for evolution-data-server;

a) Check whether component really changed, and notify about its modification
   only if so, same as update the local cache with it only in that case
b) do not refetch calendar on e_cal_backend_open call when it's already opened
c) ensure the connection will be closed on the server
Comment 3 Milan Crha 2010-12-16 11:05:29 UTC
Created commit 34d8d68 in eds master (2.91.4+)
Created commit 1b959c2 in eds gnome-2-32 (2.32.2+)