Mimetype optimization

Olivier Goffart ogoffart at bepointbe.be
Wed Apr 23 23:35:35 CEST 2008


Le mercredi 23 avril 2008, Jakub Stachowski a écrit :
> Attached is a patch to fix these problems.
> I added some static QChar() vars (conversion char* -> QChar took ~10% of
> matchFileName). Is it a problem?

You can do
pattern.contains(ushort('*'))

since the implicit convertion from ushort to QChar is inline and immediate, it 
does with no cost at all.    (QChar is actually a ushort internally)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-optimize/attachments/20080423/87ca28fc/attachment.pgp 


More information about the Kde-optimize mailing list