[Psi-devel] gc suggestNicks performace
Norman Rasmussen
norman at rasmussen.co.za
Sun May 7 14:21:50 PDT 2006
I happened to be on #debian on freenode using Psi, and was using tab
completion a few times. It's sloooow. (805 ppl - Is there no where
in the gc dialog that shows how many ppl are in the room?)
I took a look in groupchatdlg.cpp, and it seems that there's an
in-order search in suggestNicks.
Suggestions:
- implement a quick search? nickList already returns a sorted
QStringList, so we can assume sorted - sounds most work than worth,
but would make it very fast
- use QStringList.grep with a regex to filter out the strings that
match the nickText before we start looping - sounds quick and easy to
implement, probably a good idea to test it first.
--
- Norman Rasmussen
- Email: norman at rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
More information about the psi-devel
mailing list