[Kolab-devel] Max number of contacts

David Faure faure at kde.org
Fri Nov 5 21:16:57 CET 2004

On Thursday 04 November 2004 20:41, David Faure wrote:
> * Starting and quitting (with Alt+F4 during the loading, so no time is lost) kontact
> (in kaddressbook mode) with those 10000 contacts takes 30s.
> For comparison, starting and quitting kontact without any contacts to load takes 2s.
> * According to callgrind, two thirds of the instructions (15.2 billion) are spent in the
> incidencesKolab() call, and one third (8.2 billion) in loadContact() 
> (mostly in QDom XML loading, as expected).
> I think I found a way to optimize incidencesKolab(), testing that now.

I optimized the loading by 10%, then I added a progress dialog while loading
the contacts and incidences (it only appears if it takes more than 4s),
which basically brings us back to 30s, but the user experience is much improved,
since the window now repaints itself and shows the progress dialog.

David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

More information about the devel mailing list