Skip to content

Commit 722e5f0

Browse files
committed
rpclib: change default size of unpacker
1 parent e54b7c6 commit 722e5f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libraries/rpclib/src/rpc/msgpack/unpack.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void msgpack_unpacker_free(msgpack_unpacker* mpac);
9898

9999

100100
#ifndef MSGPACK_UNPACKER_RESERVE_SIZE
101-
#define MSGPACK_UNPACKER_RESERVE_SIZE (32*1024)
101+
#define MSGPACK_UNPACKER_RESERVE_SIZE (1024)
102102
#endif
103103

104104
/**

libraries/rpclib/src/rpc/msgpack/v1/unpack_decl.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@
4040
const size_t COUNTER_SIZE = sizeof(_msgpack_atomic_counter_t);
4141

4242
#ifndef MSGPACK_UNPACKER_INIT_BUFFER_SIZE
43-
#define MSGPACK_UNPACKER_INIT_BUFFER_SIZE (64*1024)
43+
#define MSGPACK_UNPACKER_INIT_BUFFER_SIZE (1024)
4444
#endif
4545

4646
#ifndef MSGPACK_UNPACKER_RESERVE_SIZE
47-
#define MSGPACK_UNPACKER_RESERVE_SIZE (32*1024)
47+
#define MSGPACK_UNPACKER_RESERVE_SIZE (1024)
4848
#endif
4949

5050

0 commit comments

Comments
 (0)