mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-05 13:27:19 +03:00
Use first-fit rather than first-best-fit run/chunk allocation.
This tends to more effectively pack active memory toward low addresses. However, additional tree searches are required in many cases, so whether this change stands the test of time will depend on real-world benchmarks.
This commit is contained in:
parent
5707d6f952
commit
97c04a9383
3 changed files with 89 additions and 32 deletions
|
|
@ -312,7 +312,7 @@ struct arena_s {
|
|||
|
||||
/*
|
||||
* Size/address-ordered tree of this arena's available runs. The tree
|
||||
* is used for first-best-fit run allocation.
|
||||
* is used for first-fit run allocation.
|
||||
*/
|
||||
arena_avail_tree_t runs_avail;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue