Commit 691332ddca35e907929b2a6acd099dea5c0ab08d

Stefan Sperling 2019-05-22T12:54:45

increase GOT_INFLATE_BUFSIZE (trades memory usage for speed)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/got_lib_inflate.h b/lib/got_lib_inflate.h
index ea3d77c..f90aa5f 100644
--- a/lib/got_lib_inflate.h
+++ b/lib/got_lib_inflate.h
@@ -25,7 +25,7 @@ struct got_inflate_buf {
 #define GOT_INFLATE_F_OWN_OUTBUF	0x02
 };
 
-#define GOT_INFLATE_BUFSIZE		8192
+#define GOT_INFLATE_BUFSIZE		32768
 
 const struct got_error *got_inflate_init(struct got_inflate_buf *, uint8_t *,
     size_t);