diff options
author | daan <daanl@outlook.com> | 2022-02-05 11:21:47 -0800 |
---|---|---|
committer | daan <daanl@outlook.com> | 2022-02-05 11:21:47 -0800 |
commit | 8ec83f6945133e299290354ca74f65e906c8b163 (patch) | |
tree | 3bbb0c4cd29a6682cc2845f44633a06ca267e8c7 /include | |
parent | e11100a13780297d7016eba0fcf541c85f60c16b (diff) |
increase min commit to 2 mib
Diffstat (limited to 'include')
-rw-r--r-- | include/mimalloc-types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h index 6354979..310fb92 100644 --- a/include/mimalloc-types.h +++ b/include/mimalloc-types.h @@ -327,8 +327,8 @@ typedef enum mi_segment_kind_e { // is still tracked in fine-grained MI_COMMIT_SIZE chunks) // ------------------------------------------------------ -#define MI_MINIMAL_COMMIT_SIZE (16*MI_SEGMENT_SLICE_SIZE) // 1MiB -#define MI_COMMIT_SIZE (MI_SEGMENT_SLICE_SIZE) +#define MI_MINIMAL_COMMIT_SIZE (2*MI_MiB) +#define MI_COMMIT_SIZE (MI_SEGMENT_SLICE_SIZE) // 64KiB #define MI_COMMIT_MASK_BITS (MI_SEGMENT_SIZE / MI_COMMIT_SIZE) #define MI_COMMIT_MASK_FIELD_BITS MI_SIZE_BITS #define MI_COMMIT_MASK_FIELD_COUNT (MI_COMMIT_MASK_BITS / MI_COMMIT_MASK_FIELD_BITS) |