qt5base-lts/tests/benchmarks/corelib/io
Alex Trotsenko 6e8fcab7e0 Improve QIODevice::peek() performance on buffered devices
Since 5.7, QIODevice::peek() implementation is based on transaction
mechanism. While technically it's correct, seeking backward on a
buffered random-access device clears the internal buffer that affects
the performance of reading.

To solve the problem, this patch implements peek mode directly inside
the reading procedure.

Task-number: QTBUG-56032
Change-Id: Ic5269f76e44c491a0309e13aba87fa7cf7b9259f
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2017-02-09 18:46:24 +00:00
..
qdir Updated license headers 2016-01-21 18:55:18 +00:00
qdiriterator Remove Windows CE from tests (others). 2016-03-31 06:14:04 +00:00
qfile Remove Windows CE from tests (others). 2016-03-31 06:14:04 +00:00
qfileinfo Remove Windows CE from tests (others). 2016-03-31 06:14:04 +00:00
qiodevice Improve QIODevice::peek() performance on buffered devices 2017-02-09 18:46:24 +00:00
qprocess Remove Windows CE from tests (others). 2016-03-31 06:14:04 +00:00
qtemporaryfile Updated license headers 2016-01-21 18:55:18 +00:00
qtextstream Updated license headers 2016-01-21 18:55:18 +00:00
qurl Updated license headers 2016-01-21 18:55:18 +00:00
io.pro QTextStream: add fast path for writing char and QChar. 2014-09-12 02:07:36 +02:00