GNOME Bugzilla – Bug 420813
Unnecessarily slow update/reopen of webcal calendars
Last modified: 2010-12-16 11:05:29 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.
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.
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
Created commit 34d8d68 in eds master (2.91.4+) Created commit 1b959c2 in eds gnome-2-32 (2.32.2+)