diff options
author | Marc Mutz <marc.mutz@qt.io> | 2021-12-12 14:23:58 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2021-12-15 17:35:13 +0000 |
commit | 63a35898f4990963fe91acd565df49111a281fa4 (patch) | |
tree | c15819a5a9db3f0d4c3e40445b97b2fdb4cbf2c5 /tests/auto/other/toolsupport | |
parent | 7ef614017091d7b56ac905c43da035259583c077 (diff) |
QIODevice: use QVLA to hold the ring buffers, not QList
The only users of more than one read- or write channel are the SCTP
code and QProcess. SCTP being pretty rare, optimize for the common
case of at most two QRingBuffers for reading (QProcess) and one for
writing. Even with more channels, QVLA shouldn't be slower than QList
- on the contrary.
Need to adjust tst_toolsupport and TypeInformationVersion, as
QFilePrivate::fileName has changed.
Pick-to: 6.3
Change-Id: I3baf982ba1f4dc51463be8730e414f6164072d8b
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/other/toolsupport')
-rw-r--r-- | tests/auto/other/toolsupport/tst_toolsupport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/other/toolsupport/tst_toolsupport.cpp b/tests/auto/other/toolsupport/tst_toolsupport.cpp index 7ba4286a4d..05ed44cc16 100644 --- a/tests/auto/other/toolsupport/tst_toolsupport.cpp +++ b/tests/auto/other/toolsupport/tst_toolsupport.cpp @@ -142,9 +142,9 @@ void tst_toolsupport::offsets_data() #ifdef Q_PROCESSOR_X86 // x86 32-bit has weird alignment rules. Refer to QtPrivate::AlignOf in // qglobal.h for more details. - data << 188 << 304; + data << 264 << 424; #else - data << 196 << 304; + data << 300 << 424; #endif } #endif |