qt5base-lts/tests/benchmarks/corelib
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
..
codecs Updated license headers 2016-01-21 18:55:18 +00:00
io Improve QIODevice::peek() performance on buffered devices 2017-02-09 18:46:24 +00:00
json Updated license headers 2016-01-21 18:55:18 +00:00
kernel QMetaType: Add a benchmark covering creation of QVariant from an enum 2016-07-22 12:47:05 +00:00
mimetypes Updated license headers 2016-01-21 18:55:18 +00:00
plugin Updated license headers 2016-01-21 18:55:18 +00:00
thread Add a benchmark for QReadWriteLock 2016-08-10 09:05:14 +00:00
tools QDateTime::fromString(): improve performance by 33% 2017-01-03 13:37:49 +00:00
corelib.pro test: Moving tst_QMimeDatabase::inheritsPerformance() test 2012-10-31 19:56:42 +01:00