|
|
|
|
|
by weland
4114 days ago
|
|
It doesn't have custom allocator support as in "you can't have one function allocate memory and pass it for another function to use it", or as in "you can't replace the runtime's own malloc"? OpenSSL were doing the former, not the latter. (Edit: I'm really really curious, not necessarily trying to prove a point. I deal with low-level code in safety-critical (think medical) stuff every day, and only lack of time is what makes me procrastinate that week when I'm finally going to learn Rust) |
|
However, Rust currently statically links in jemalloc - even when building a dynamic shared library. There is no easy way around it.
(because someone might ask: rustc -C prefer-dynamic dynamically links everything except jemalloc)
Having said that, I hope jemalloc gets linked externally soon so my code doesn't have to pay the memory penalty in each of my memory-constrained threads.