[telepathy] [Bug 333563] Telepathy contactlist is too fast to filter/search as you type; makes UI unresponsive on 1000s contacts

David Edmundson kde at davidedmundson.co.uk
Mon Apr 28 21:07:20 BST 2014


https://bugs.kde.org/show_bug.cgi?id=333563

--- Comment #6 from David Edmundson <kde at davidedmundson.co.uk> ---
I've got a callgrind output from just the filtering.

We are spending a /lot/ of time in QImage::load()  (30% of my time filtering)
we call it more often that we call paintRow. Which means something is wrong.

QPixmap has an implicit cache when given a path, QImage does not; we are
probably loading a whole image every time we repaint.

We spend 9% of the time in QPixmap::scaled() so maybe we should keep a
QPixmapCache of the scaled avatars. That really means changing the API from
libkpeople, as we would need some sort of string identifier for the image.

Lets fix that, it'll probably give us a boost, and then we can look and see if
we need to optimise anything else.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list