mdbx: import - tweak mdb_page_split (ITS#8969).

Bump up number of keys for which we use fine-grained splitpoint search

Change-Id: Icca2e1953cbcd6898b790f657636c2195b397790
This commit is contained in:
Howard Chu 2019-01-30 23:43:34 +00:00 committed by Leonid Yuriev
parent 6c160d02af
commit 828889de5c

View File

@ -10008,7 +10008,7 @@ static int mdbx_page_split(MDBX_cursor *mc, MDBX_val *newkey, MDBX_val *newdata,
* 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) {