Open
Description
Problem
In #14691, some benchmarks show that using jemalloc or mimalloc boosts Cargo's performance. There is a discussion on Zulip about whether we should switch to a different allocator. However, there are concerns raised, such as the risk of changing the allocator on some platforms. Besides, allocations are not the largest contributor to Cargo's invocation time—algorithms in dependency resolution play a more significant role. It might not be worth the risk.
This issue is open for collecting feedback and use cases.
Proposed Solution
Do something like #14691 adding different Cargo feature to enable different allocators for downstream packagers.
Notes
No response