mirror of
https://github.com/isar/libmdbx.git
synced 2025-02-10 22:00:50 +08:00
mdbx: import - tweak mdb_page_split (ITS#8969).
Bump up number of keys for which we use fine-grained splitpoint search Change-Id: I9830e143f5f5aaa4c2170a304ebc89cf67b7f3bc
This commit is contained in:
parent
c5e72817ca
commit
629e587882
2
mdb.c
2
mdb.c
@ -8921,7 +8921,7 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
|
||||
* the split so the new page is emptier than the old page.
|
||||
* This yields better packing during sequential inserts.
|
||||
*/
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user