summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qarraydataops.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-12-08 16:10:06 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-12-11 10:46:52 +0000
commitfa2153bd10057d7adbc5f5ededa1fd97c4a68161 (patch)
tree4800b8de04c8045646cbf2f5442a84770ed92852 /src/corelib/tools/qarraydataops.h
parentbe3fbd804579770db0303e6f2ba5a08d5b4fb3b1 (diff)
Optimize QXmlStreamWriterPrivate::doWriteToDevice(QStringView)
Use a stack buffer, and perform the recoding from U16 to U8 in chunks. Since no-one so far managed to get a chunked QStringEncoder to produce the same output as the test expected, at least not without additional API, fall back to the raw QUtf8 functions. This also avoids the indirect function call overhead that QStringEncoder would entail. Fixes: QTBUG-109284 Change-Id: Icaa26c3988ac8506c9cf3fde18fd5892e5e63ef2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/tools/qarraydataops.h')
0 files changed, 0 insertions, 0 deletions