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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user