[Korganizer-devel] [Bug 251127] Korganizer slow when using regional holidays setting

John Layt john at layt.net
Tue Sep 14 12:22:32 CEST 2010


John Layt <john at layt.net> changed:

           What    |Removed                     |Added
                 CC|                            |john at layt.net

--- Comment #2 from John Layt <john layt net>  2010-09-14 12:22:31 ---
Is this when using a 4.5 version of KDE and kdepimlibs but still with kdepim

If so then its because kholidays recalculates all the holidays each time it is
called, there's no caching of results, and the new calculator in 4.5 is less
efficient.  As found in other apps it is usually because multiple calls are
being made to the holidays() method using just a single date each time,
resulting in repeated recalculations for the displayed date range.  

The interim solution is to use the new holidays() method that takes a date
range and returns all the holidays, resulting in only a single calculation
rather than 30-40.  I'll have a look if there's any easy fixes here.

In 4.6 I'll be adding shared caching of the calculated results which should
resolve the issue fully.

Configure bugmail: https://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