diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2016-09-17 16:43:02 +0300 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2017-02-09 18:46:24 +0000 |
commit | 6e8fcab7e07717526c8ea6eac8785bf27fa090c3 (patch) | |
tree | a6ea9825b55b3b406515e88462c54b448ff672a6 /src/corelib/thread/qthread_win.cpp | |
parent | 60563855e589cb51b4966ca51a4d390a2f1609a4 (diff) |
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>
Diffstat (limited to 'src/corelib/thread/qthread_win.cpp')
0 files changed, 0 insertions, 0 deletions