From: Uwe Hermann Date: Sat, 14 Apr 2018 19:38:07 +0000 (+0200) Subject: input/binary: Increase chunk size from 4KB to 4MB. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a33e4be8260032d8d85c25502cc934f91ba73812;p=libsigrok.git input/binary: Increase chunk size from 4KB to 4MB. This can slightly increase performance when loading larger files. --- diff --git a/src/input/binary.c b/src/input/binary.c index 223efd88..f0c798fa 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -29,7 +29,7 @@ #define LOG_PREFIX "input/binary" -#define MAX_CHUNK_SIZE 4096 +#define MAX_CHUNK_SIZE (4 * 1024 * 1024) #define DEFAULT_NUM_CHANNELS 8 #define DEFAULT_SAMPLERATE 0