mdbx: the radix-sort threshold reduced to 333.

Change-Id: Ic69b6c3740f71997cd014a82fb32a8202ddb65e0
This commit is contained in:
Leonid Yuriev
2021-04-20 22:14:13 +03:00
parent eabb29d9c4
commit c2d8c35daa
2 changed files with 6 additions and 5 deletions

View File

@@ -800,6 +800,8 @@ typedef struct MDBX_lockinfo {
#define MDBX_PGL_LIMIT (MAX_MAPSIZE32 / MIN_PAGESIZE)
#endif /* MDBX_WORDBITS */
#define MDBX_RADIXSORT_THRESHOLD 333
/*----------------------------------------------------------------------------*/
/* An PNL is an Page Number List, a sorted array of IDs.
@@ -839,7 +841,6 @@ typedef struct MDBX_dpl {
/* PNL sizes */
#define MDBX_PNL_GRANULATE 1024
#define MDBX_PNL_RADIXSORT_THRESHOLD 1024
#define MDBX_PNL_INITIAL \
(MDBX_PNL_GRANULATE - 2 - MDBX_ASSUME_MALLOC_OVERHEAD / sizeof(pgno_t))