summaryrefslogtreecommitdiffstats
path: root/config.tests/qws
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-09-14 13:50:36 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-15 20:39:28 +0200
commit08d1ca10537b2005fa0ff93534272e277b3ae821 (patch)
tree76ec1088be51f25d33fc9c876dd245b332d2fc86 /config.tests/qws
parenta48e9af146ee1d7571934994065e7164fd323f18 (diff)
Boost performance of QChar::isLetterOrNumber
Make it inline; add fast checks for ascii letters and digits; add fallback function that uses the fastcall calling convention. On ia32, this change makes isLetterOrNumber ~120x faster for ascii letters and digits, ~150x faster for non-letter/digit ascii characters, and ~1.3x faster for non-ascii characters. Note that this change is NOT binary compatible. Also add an autotest with expected results from before the optimization, to ensure that the behavior is the same. Change-Id: Ia4e13692f4dd79f6aa0b96da29449e0487971b0e Reviewed-on: http://codereview.qt-project.org/4904 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'config.tests/qws')
0 files changed, 0 insertions, 0 deletions