mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-07 07:49:31 +03:00
revert back to unfull at the end of queues as it slows down some benchmarks (like alloc-test1)
This commit is contained in:
parent
96877159c2
commit
cbc0e19809
1 changed files with 3 additions and 1 deletions
|
@ -357,7 +357,9 @@ void _mi_page_unfull(mi_page_t* page) {
|
|||
mi_page_set_in_full(page, false); // to get the right queue
|
||||
mi_page_queue_t* pq = mi_heap_page_queue_of(heap, page);
|
||||
mi_page_set_in_full(page, true);
|
||||
mi_page_queue_enqueue_from_at_start(pq, pqfull, page); // insert at the start to increase the chance of reusing full pages (?)
|
||||
mi_page_queue_enqueue_from(pq, pqfull, page);
|
||||
// we may instead insert at the front to increase reuse but it slows down some benchmarks like `alloc-test1`
|
||||
// mi_page_queue_enqueue_from_at_start(pq, pqfull, page);
|
||||
}
|
||||
|
||||
static void mi_page_to_full(mi_page_t* page, mi_page_queue_t* pq) {
|
||||
|
|
Loading…
Add table
Reference in a new issue