mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +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
|
@ -18,6 +18,5 @@ byte-unit = { version = "4.0.14", features = ["serde"] }
|
|||
bimap = "0.6.2"
|
||||
csv = "1.1.6"
|
||||
stderrlog = "0.5.1"
|
||||
mimalloc = { version = "0.1.29", default-features = false }
|
||||
|
||||
[target.'cfg(target_os = "linux")'.dependencies]
|
||||
jemallocator = "0.3.2"
|
||||
|
|
|
@ -16,9 +16,8 @@ use milli::update::{self, IndexDocumentsConfig, IndexDocumentsMethod, IndexerCon
|
|||
use milli::{Index, Object};
|
||||
use structopt::StructOpt;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
#[derive(Debug, StructOpt)]
|
||||
#[structopt(name = "Milli CLI", about = "A simple CLI to manipulate a milli index.")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue