Re: Mimetype optimization
Olivier Goffart <[email protected]> Wed, 23 Apr 2008 23:35:35 +0200
| Newsgroups | gmane.comp.kde.devel.optimize |
|---|---|
| Message-ID | <[email protected]> |
--===============1494547302==
Content-Type: multipart/signed;
boundary="nextPart4106745.q2EH2r1jlY";
protocol="application/pgp-signature";
micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
--nextPart4106745.q2EH2r1jlY
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Le mercredi 23 avril 2008, Jakub Stachowski a =C3=A9crit=C2=A0:
> 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=20
does with no cost at all. (QChar is actually a ushort internally)
--nextPart4106745.q2EH2r1jlY
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQBID6usz58lY8jWrL0RAkn6AJ9co/Ds7mUJsht/PdzYamX12NeS/gCfZNvi
h5Kn+mY1YgWPvGGjN0tWZJo=
=f2Zq
-----END PGP SIGNATURE-----
--nextPart4106745.q2EH2r1jlY--
--===============1494547302==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Kde-optimize mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-optimize
--===============1494547302==--