3 ms·
Or you could just use jemallocator with background threads. https://crates.io/crates/jemalloc-sys https://crates.io/crates/jemalloc-sys "background_threads (d
by Eikon 5y ago
Or you could just use jemallocator with background threads.
https://crates.io/crates/jemalloc-sys https://crates.io/crates/jemalloc-sys
"background_threads (disabled by default): enables background threads by default at run-time. When set to true, background threads are created on demand (the number of background threads will be no more than the number of CPUs or active arenas). Threads run periodically, and handle purging asynchronously. [...]"