Skip to content

Commit

Permalink
limit candidate search to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Dec 21, 2024
1 parent 825dd41 commit 7085b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/page.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ static void mi_page_init(mi_heap_t* heap, mi_page_t* page, size_t block_size, mi
-------------------------------------------------------------*/

// search for a best next page to use for at most N pages (often cut short if immediate blocks are available)
#define MI_MAX_CANDIDATE_SEARCH (8)
#define MI_MAX_CANDIDATE_SEARCH (4)

// is the page not yet used up to its reserved space?
static bool mi_page_is_expandable(const mi_page_t* page) {
Expand Down

0 comments on commit 7085b6c

Please sign in to comment.