From 179185985e42c90ace97044ef8830700e6f89f11 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 30 Jan 2019 23:43:34 +0000 Subject: [PATCH] mdbx: import - tweak mdb_page_split (ITS#8969). Bump up number of keys for which we use fine-grained splitpoint search Change-Id: Icca2e1953cbcd6898b790f657636c2195b397790 --- src/mdbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index 0835aa5a..9036d7c0 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -10884,7 +10884,7 @@ static int mdbx_page_split(MDBX_cursor *mc, const MDBX_val *newkey, * This yields better packing during sequential inserts. */ int dir; - if (nkeys < 20 || nsize > pmax / 16 || newindx >= nkeys) { + if (nkeys < 32 || nsize > pmax / 16 || newindx >= nkeys) { /* Find split point */ psize = 0; if (newindx <= split_indx || newindx >= nkeys) {