4 ms·
Rust chooses to call jemalloc for allocations by default[0], as it is generally faster than the system allocators, especially as we can go beyond the plain mall
by dbaupp 10y ago
Rust chooses to call jemalloc for allocations by default[0], as it is generally faster than the system allocators, especially as we can go beyond the plain malloc/free interface. This choice is independent of the libc used, which Rust mainly uses for syscalls.
[0]: http://doc.rust-lang.org/book/custom-allocators.html http://doc.rust-lang.org/book/custom-allocators.html