path: root/config.tests/qpa/xcb-poll-for-queued-event/xcb-poll-for-queued-event.cpp
diff options
authorKent Hansen <>2011-09-14 14:11:17 +0200
committerQt by Nokia <>2011-09-15 20:39:28 +0200
commit8e67ef47942f7d7034ccf2166411d2bf1668c1e2 (patch)
treebba421abc399c8cc658b0ae234f784eab2b0a417 /config.tests/qpa/xcb-poll-for-queued-event/xcb-poll-for-queued-event.cpp
parent08d1ca10537b2005fa0ff93534272e277b3ae821 (diff)
Boost performance of QChar::isSpace
Make it inline; add fast checks for typical spaces; add fallback function that uses the fastcall calling convention. On ia32, this change makes isSpace ~340x faster for ascii spaces, ~170x faster for non-space 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: I9438d0ad3c9ba2e80560c4bee7eed05115265798 Reviewed-on: Reviewed-by: Qt Sanity Bot <> Reviewed-by: Lars Knoll <>
Diffstat (limited to 'config.tests/qpa/xcb-poll-for-queued-event/xcb-poll-for-queued-event.cpp')
0 files changed, 0 insertions, 0 deletions