]> sigrok.org Git - libsigrok.git/commitdiff
input/binary: Increase chunk size from 4KB to 4MB.
authorUwe Hermann <redacted>
Sat, 14 Apr 2018 19:38:07 +0000 (21:38 +0200)
committerUwe Hermann <redacted>
Sat, 14 Apr 2018 20:23:02 +0000 (22:23 +0200)
This can slightly increase performance when loading larger files.

src/input/binary.c

index 223efd88089bd1fa78f2eeaec0f429cab01829ec..f0c798faed538aed5901d46223d7067cb338d073 100644 (file)
@@ -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