Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As far as I can tell you're right in principle, but even Rust doesn't currently deliver that in practice. With Rust 1.0, at least on Linux, Rust uses its own bundled jemalloc rather than the libc malloc. So IIUC, that means that you can't take advantage of things like libumem, the alternative malloc described in the blog post bcantrill referenced a few comments ago.


Yeah, I figured someone would bring up jemalloc. :) As of a few days ago, Rust allocation is pluggable [1]. jemalloc is considered a "feature" in the Cargo sense which can be turned on and off. (The immediate impetus for this feature work was to use HeapAlloc() on Windows.)

[1]: https://github.com/rust-lang/rust/blob/master/src/liballoc/h...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: