From 76c2da9b507f99e54d5461f09efcfcd8754dd207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 14 Jan 2022 00:13:40 +0100 Subject: [PATCH] Do not buffer the I/O as we are already reading in blocks --- src/map/IMG/subfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/IMG/subfile.h b/src/map/IMG/subfile.h index ecd3f8dd..066b8949 100644 --- a/src/map/IMG/subfile.h +++ b/src/map/IMG/subfile.h @@ -26,7 +26,7 @@ public: _data.resize(1U<blockBits()); _file.setFileName(subFile->fileName()); - _file.open(QIODevice::ReadOnly); + _file.open(QIODevice::ReadOnly | QIODevice::Unbuffered); } private: