From b66993ca1a99b03bf9c9dc5fc89111e990da8487 Mon Sep 17 00:00:00 2001 From: Kris Zyp Date: Wed, 30 Oct 2024 20:18:27 -0600 Subject: [PATCH] Change shared buffer threshold since it is creating a lot of extra overhead and GC --- src/lmdb-js.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lmdb-js.h b/src/lmdb-js.h index 713aa17dc..65dc39b25 100644 --- a/src/lmdb-js.h +++ b/src/lmdb-js.h @@ -20,7 +20,7 @@ using namespace Napi; // set the threshold of when to use shared buffers (for uncompressed entries larger than this value) -const size_t SHARED_BUFFER_THRESHOLD = 0x4000; +const size_t SHARED_BUFFER_THRESHOLD = 0x1000000; const uint32_t SPECIAL_WRITE = 0x10101; const uint32_t REPLACE_WITH_TIMESTAMP_FLAG = 0x1000000; const uint32_t REPLACE_WITH_TIMESTAMP = 0x1010101;