Skip to content

Commit

Permalink
Change shared buffer threshold since it is creating a lot of extra ov…
Browse files Browse the repository at this point in the history
…erhead and GC
  • Loading branch information
kriszyp committed Oct 31, 2024
1 parent 69b646e commit b66993c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lmdb-js.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b66993c

Please sign in to comment.