mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:24:13 +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: Icca2e1953cbcd6898b790f657636c2195b397790
This commit is contained in:
parent
9cc9116df3
commit
bfffaa66b8
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user