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 Leo Yuriev
parent 9cc9116df3
commit bfffaa66b8

View File

@ -10882,7 +10882,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) {