summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-01-25 17:54:59 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-01-29 03:43:29 +0000
commit82147ce33a31e491c8363b78b50fbb9b1a2619de (patch)
tree53c75857e24076d04dd98cc8917f38ea354f6160 /src/corelib/tools
parent7b7c3355f2a2bd7bb7fdbe8ad343b8524901af71 (diff)
QString: optimize finding size=1 needles in QLatin1Strings
Use memchr() if the needle has size() one, and add a fast path in findString(QLatin1String, QStringView) to circumvent the QVLA path. We might want to extend this and use a simple C array for very short needles and (cached?) Boyer-Moore for anything larger. Pick-to: 6.3 Change-Id: I8364ea9f004d537be8a09cc751408d8adb902d13 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/corelib/tools')
0 files changed, 0 insertions, 0 deletions