mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 23:04:26 +01:00
Merge #249
249: Enable the jemallocator dependencies only when we are running on linux r=Kerollmops a=irevoire Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
commit
5aea8dd75b
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -132,6 +132,7 @@ dependencies = [
|
|||||||
"criterion",
|
"criterion",
|
||||||
"flate2",
|
"flate2",
|
||||||
"heed",
|
"heed",
|
||||||
|
"jemallocator",
|
||||||
"milli",
|
"milli",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
]
|
]
|
||||||
@ -969,6 +970,7 @@ dependencies = [
|
|||||||
"futures",
|
"futures",
|
||||||
"grenad",
|
"grenad",
|
||||||
"heed",
|
"heed",
|
||||||
|
"jemallocator",
|
||||||
"log",
|
"log",
|
||||||
"maplit",
|
"maplit",
|
||||||
"meilisearch-tokenizer 0.2.3",
|
"meilisearch-tokenizer 0.2.3",
|
||||||
|
@ -8,6 +8,9 @@ publish = false
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
milli = { path = "../milli" }
|
milli = { path = "../milli" }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
|
jemallocator = "0.3.2"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
heed = "*" # we want to use the version milli uses
|
heed = "*" # we want to use the version milli uses
|
||||||
criterion = { version = "0.3.4", features = ["html_reports"] }
|
criterion = { version = "0.3.4", features = ["html_reports"] }
|
||||||
|
@ -5,6 +5,10 @@ use criterion::{criterion_group, criterion_main};
|
|||||||
use milli::update::Settings;
|
use milli::update::Settings;
|
||||||
use utils::Conf;
|
use utils::Conf;
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
#[global_allocator]
|
||||||
|
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||||
|
|
||||||
fn base_conf(builder: &mut Settings) {
|
fn base_conf(builder: &mut Settings) {
|
||||||
let displayed_fields =
|
let displayed_fields =
|
||||||
["id", "title", "album", "artist", "genre", "country", "released", "duration"]
|
["id", "title", "album", "artist", "genre", "country", "released", "duration"]
|
||||||
|
@ -5,6 +5,10 @@ use criterion::{criterion_group, criterion_main};
|
|||||||
use milli::update::Settings;
|
use milli::update::Settings;
|
||||||
use utils::Conf;
|
use utils::Conf;
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
#[global_allocator]
|
||||||
|
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||||
|
|
||||||
fn base_conf(builder: &mut Settings) {
|
fn base_conf(builder: &mut Settings) {
|
||||||
let displayed_fields = ["title", "body", "url"].iter().map(|s| s.to_string()).collect();
|
let displayed_fields = ["title", "body", "url"].iter().map(|s| s.to_string()).collect();
|
||||||
builder.set_displayed_fields(displayed_fields);
|
builder.set_displayed_fields(displayed_fields);
|
||||||
|
@ -8,7 +8,9 @@ edition = "2018"
|
|||||||
anyhow = "1.0.38"
|
anyhow = "1.0.38"
|
||||||
byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
|
byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
|
||||||
heed = "0.10.6"
|
heed = "0.10.6"
|
||||||
jemallocator = "0.3.2"
|
|
||||||
milli = { path = "../milli" }
|
milli = { path = "../milli" }
|
||||||
stderrlog = "0.5.1"
|
stderrlog = "0.5.1"
|
||||||
structopt = { version = "0.3.21", default-features = false }
|
structopt = { version = "0.3.21", default-features = false }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
|
jemallocator = "0.3.2"
|
||||||
|
@ -42,3 +42,6 @@ funty = "=1.1"
|
|||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
maplit = "1.0.2"
|
maplit = "1.0.2"
|
||||||
serde_test = "1.0.125"
|
serde_test = "1.0.125"
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
|
jemallocator = "0.3.2"
|
||||||
|
@ -36,6 +36,10 @@ use warp::Filter;
|
|||||||
|
|
||||||
use self::update_store::UpdateStore;
|
use self::update_store::UpdateStore;
|
||||||
|
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
#[global_allocator]
|
||||||
|
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||||
|
|
||||||
static GLOBAL_THREAD_POOL: OnceCell<ThreadPool> = OnceCell::new();
|
static GLOBAL_THREAD_POOL: OnceCell<ThreadPool> = OnceCell::new();
|
||||||
|
|
||||||
#[derive(Debug, StructOpt)]
|
#[derive(Debug, StructOpt)]
|
||||||
|
@ -9,9 +9,11 @@ anyhow = "1.0.38"
|
|||||||
byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
|
byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
|
||||||
csv = "1.1.5"
|
csv = "1.1.5"
|
||||||
heed = "0.10.6"
|
heed = "0.10.6"
|
||||||
jemallocator = "0.3.2"
|
|
||||||
milli = { path = "../milli" }
|
milli = { path = "../milli" }
|
||||||
roaring = "0.6.6"
|
roaring = "0.6.6"
|
||||||
serde_json = "1.0.62"
|
serde_json = "1.0.62"
|
||||||
stderrlog = "0.5.1"
|
stderrlog = "0.5.1"
|
||||||
structopt = { version = "0.3.21", default-features = false }
|
structopt = { version = "0.3.21", default-features = false }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
|
jemallocator = "0.3.2"
|
||||||
|
@ -8,9 +8,11 @@ edition = "2018"
|
|||||||
anyhow = "1.0.38"
|
anyhow = "1.0.38"
|
||||||
byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
|
byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
|
||||||
heed = "0.10.6"
|
heed = "0.10.6"
|
||||||
jemallocator = "0.3.2"
|
|
||||||
log = "0.4.14"
|
log = "0.4.14"
|
||||||
milli = { path = "../milli" }
|
milli = { path = "../milli" }
|
||||||
serde_json = "1.0.62"
|
serde_json = "1.0.62"
|
||||||
stderrlog = "0.5.1"
|
stderrlog = "0.5.1"
|
||||||
structopt = { version = "0.3.21", default-features = false }
|
structopt = { version = "0.3.21", default-features = false }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
|
jemallocator = "0.3.2"
|
||||||
|
Loading…
Reference in New Issue
Block a user