[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-optimize
Subject:    Re: Mimetype optimization
From:       Olivier Goffart <ogoffart () bepointbe ! be>
Date:       2008-04-24 20:02:17
Message-ID: 200804242202.24475.ogoffart () bepointbe ! be
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Le mercredi 23 avril 2008, Olivier Goffart a écrit  :
> 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)

Actually, QLatin1Char('*') is also perfectly optimized
If it show on your profiling information it is maybe because Qt is compiled 
with debug, and the inline method are not inlined.


["signature.asc" (application/pgp-signature)]

_______________________________________________
Kde-optimize mailing list
Kde-optimize@kde.org
https://mail.kde.org/mailman/listinfo/kde-optimize


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic