mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Decreased GMAP read block size to 4K
This commit is contained in:
parent
378fa8dc0e
commit
e86f89308b
@ -7,7 +7,7 @@
|
|||||||
#include "img.h"
|
#include "img.h"
|
||||||
|
|
||||||
|
|
||||||
#define BLOCK_SIZE 8192
|
#define BLOCK_SIZE 4096
|
||||||
|
|
||||||
class SubFile
|
class SubFile
|
||||||
{
|
{
|
||||||
@ -146,7 +146,7 @@ protected:
|
|||||||
private:
|
private:
|
||||||
bool readByte(Handle &handle, quint8 &val) const
|
bool readByte(Handle &handle, quint8 &val) const
|
||||||
{
|
{
|
||||||
int blockSize = handle._file ? BLOCK_SIZE : _img->blockSize();
|
int blockSize = _img ? _img->blockSize() : BLOCK_SIZE;
|
||||||
val = handle._data.at(handle._blockPos++);
|
val = handle._data.at(handle._blockPos++);
|
||||||
handle._pos++;
|
handle._pos++;
|
||||||
return (handle._blockPos >= blockSize)
|
return (handle._blockPos >= blockSize)
|
||||||
|
Loading…
Reference in New Issue
Block a user