From: Uwe Hermann Date: Fri, 6 Jan 2012 15:20:28 +0000 (+0100) Subject: sr: Consistently use 512kB as default chunk size. X-Git-Tag: libsigrok-0.1.0~182 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8ff6afc95d2a9213b8a583e88e9e1b4eb59aad17;p=libsigrok.git sr: Consistently use 512kB as default chunk size. --- diff --git a/input/binary.c b/input/binary.c index 9d7e1560..80820e02 100644 --- a/input/binary.c +++ b/input/binary.c @@ -25,7 +25,7 @@ #include #include "sigrok.h" -#define CHUNKSIZE 4096 +#define CHUNKSIZE (512 * 1024) #define DEFAULT_NUM_PROBES 8 static int format_match(const char *filename) diff --git a/session_driver.c b/session_driver.c index 27e8cdc9..b6d14eaa 100644 --- a/session_driver.c +++ b/session_driver.c @@ -27,7 +27,7 @@ #include "sigrok-internal.h" /* size of payloads sent across the session bus */ -#define CHUNKSIZE 4096 +#define CHUNKSIZE (512 * 1024) struct session_vdevice { char *capturefile; diff --git a/sigrok-internal.h b/sigrok-internal.h index 71325c27..4ea5d475 100644 --- a/sigrok-internal.h +++ b/sigrok-internal.h @@ -34,7 +34,7 @@ #endif /* Size of a datastore chunk in units */ -#define DATASTORE_CHUNKSIZE 512000 +#define DATASTORE_CHUNKSIZE (512 * 1024) /*--- hwplugin.c ------------------------------------------------------------*/