qt5base-lts/tests/benchmarks/corelib/io/qiodevice
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
..
main.cpp Improve QIODevice::peek() performance on buffered devices 2017-02-09 18:46:24 +00:00
qiodevice.pro Remove TARGET.EPOCHEAPSIZE settings (Symbian). 2015-09-03 15:25:19 +00:00