-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/117668/
-----------------------------------------------------------

(Updated April 25, 2014, 9:05 a.m.)


Status
------

This change has been marked as submitted.


Review request for Telepathy.


Repository: ktp-common-internals


Description
-------

Remove internal countContacts function

This method counted the contacts in a group every time a contact in that
group changed. This meant on every insertion we would loop through the
entire set of contacts to make the new count.

Assuming all contacts come online we end up making contacts^2 calls to
data() which is obviously really slow. On my system KPeople::data()
showed over 300,000 calls on load

Instead strip this code and re-insert a simple filter at the contact
list level (see patch to contact list)


Diffs
-----

  KTp/Models/contacts-filter-model.h bccc6f6 
  KTp/Models/contacts-filter-model.cpp 617d3aa 

Diff: https://git.reviewboard.kde.org/r/117668/diff/


Testing
-------


Thanks,

David Edmundson

_______________________________________________
KDE-Telepathy mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-telepathy

Reply via email to