Hi,
Please find attached an optimization patch for KCal-EDS. I would
appreciate your input on this.
***
EDSStorage::objectsModified() Do not iterate over all incidences
We only iterate over the instances for an incidence identified by
its uid in order to find the one with the correct rid. This is a
lot faster than iterating over all the incidences in the calendar
to find the one with the correct uid / rid pair.
***
Note that this patch does not require any API change in KCalCore.
Instead, we create a shallow incidence with the correct type / uid and
use the existing KCalCore::Calendar::instances(incidence) method. The
incidence identified by only uid may not exist in the calendar but it
does not matter for simply retrieving an instance (identified by
uid/rid).
Kr,
--
Dr. Christophe Dumez
Linux Software Engineer
Intel Finland Oy - Open Source Technology Center
0001-EDSStorage-objectsModified-Do-not-iterate-over-all-i.patch
Description: Binary data
_______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
