mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +03:00
use eager delay after 2 threads
This commit is contained in:
parent
f9ac60a90f
commit
d52b559b57
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ static mi_segment_t* mi_segment_init(mi_segment_t* segment, size_t required, mi_
|
||||||
mi_assert_internal(segment_size >= required);
|
mi_assert_internal(segment_size >= required);
|
||||||
|
|
||||||
// Initialize parameters
|
// Initialize parameters
|
||||||
const bool eager_delayed = (page_kind <= MI_PAGE_MEDIUM && _mi_current_thread_count() > 4 &&
|
const bool eager_delayed = (page_kind <= MI_PAGE_MEDIUM && _mi_current_thread_count() > 2 &&
|
||||||
tld->count < (size_t)mi_option_get(mi_option_eager_commit_delay));
|
tld->count < (size_t)mi_option_get(mi_option_eager_commit_delay));
|
||||||
const bool eager = !eager_delayed && mi_option_is_enabled(mi_option_eager_commit);
|
const bool eager = !eager_delayed && mi_option_is_enabled(mi_option_eager_commit);
|
||||||
bool commit = eager; // || (page_kind >= MI_PAGE_LARGE);
|
bool commit = eager; // || (page_kind >= MI_PAGE_LARGE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue