mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Always use mimalloc as the global allocator
This commit is contained in:
parent
fb2b6c0c28
commit
20be69e1b9
10 changed files with 10 additions and 22 deletions
|
@ -30,6 +30,7 @@ serde_json = { version = "1.0.79", features = ["preserve_order"] }
|
|||
tokio = { version = "1.17.0", features = ["full"] }
|
||||
tokio-stream = { version = "0.1.8", default-features = false, features = ["sync"] }
|
||||
warp = "0.3.2"
|
||||
mimalloc = { version = "0.1.29", default-features = false }
|
||||
|
||||
# logging
|
||||
log = "0.4.14"
|
||||
|
@ -45,5 +46,3 @@ csv = "1.1.6"
|
|||
maplit = "1.0.2"
|
||||
serde_test = "1.0.136"
|
||||
|
||||
[target.'cfg(target_os = "linux")'.dependencies]
|
||||
jemallocator = "0.3.2"
|
||||
|
|
|
@ -42,9 +42,8 @@ use warp::Filter;
|
|||
|
||||
use self::update_store::UpdateStore;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
static GLOBAL_CONFIG: OnceCell<IndexerConfig> = OnceCell::new();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue