mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
opt-in jemalloc
This commit is contained in:
parent
3432c4366f
commit
2ee08098a6
5 changed files with 23 additions and 3 deletions
|
@ -61,6 +61,7 @@ pub use ra_db::{
|
|||
|
||||
// We use jemalloc mainly to get heap usage statistics, actual performance
|
||||
// differnece is not measures.
|
||||
#[cfg(feature = "jemalloc")]
|
||||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue