[KPhotoAlbum] extragear/graphics/kphotoalbum

Jan Kundrát jkt at gentoo.org
Tue May 22 18:46:01 BST 2007


Jesper K. Pedersen wrote:
> I seriously dont thing that running though a list of say 20.000 strings and 
> comparing cost much, I'm way more concerned about stat'ing. But in any case 
> this is something that should be profiled before "fixed". Our first and 
> foremost task should always be readability of code.

So after spending two hours when trying to re-use the index determined
in ThumbnailView::ThumbnailWidget::fileName{AtCoordinate,InCell}() and
discovering that QStringList has a findIndex() method, I realized that
most time is (contrary to my former tests) actually spent in the
viewer->seekTo() call. This is funny, but I'll try to investigate more.

Cheers,
-jkt

-- 
cd /local/pub && more beer > /dev/mouth

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20070522/7fcc52b8/attachment.sig>


More information about the Kphotoalbum mailing list