Skip to content

Commit d5503df

Browse files
authored
Optimize header values (#201)
* Optimize serialization threshold * Size unserialization chunk size to 64mb
1 parent aad1dc1 commit d5503df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nanonext.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ extern int R_interrupts_pending;
120120
#define ERROR_RET(xc) { Rf_warning("%d | %s", xc, nng_strerror(xc)); return mk_error(xc); }
121121
#define NANONEXT_INIT_BUFSIZE 4096
122122
#define NANONEXT_SERIAL_VER 3
123-
#define NANONEXT_SERIAL_THR 134217728
124-
#define NANONEXT_CHUNK_SIZE INT_MAX // must be <= INT_MAX
123+
#define NANONEXT_SERIAL_THR 67108864
124+
#define NANONEXT_CHUNK_SIZE 67108864 // must be <= INT_MAX
125125
#define NANONEXT_STR_SIZE 40
126126
#define NANONEXT_WAIT_DUR 1000
127127
#define NANO_ALLOC(x, sz) \

0 commit comments

Comments
 (0)