mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
add jemalloc to http-ui and the benchmarks
This commit is contained in:
parent
d53df8a002
commit
77eb37934f
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -132,6 +132,7 @@ dependencies = [
|
||||
"criterion",
|
||||
"flate2",
|
||||
"heed",
|
||||
"jemallocator",
|
||||
"milli",
|
||||
"reqwest",
|
||||
]
|
||||
@ -969,6 +970,7 @@ dependencies = [
|
||||
"futures",
|
||||
"grenad",
|
||||
"heed",
|
||||
"jemallocator",
|
||||
"log",
|
||||
"maplit",
|
||||
"meilisearch-tokenizer 0.2.3",
|
||||
|
@ -8,6 +8,9 @@ publish = false
|
||||
[dependencies]
|
||||
milli = { path = "../milli" }
|
||||
|
||||
[target.'cfg(target_os = "linux")'.dependencies]
|
||||
jemallocator = "0.3.2"
|
||||
|
||||
[dev-dependencies]
|
||||
heed = "*" # we want to use the version milli uses
|
||||
criterion = { version = "0.3.4", features = ["html_reports"] }
|
||||
|
@ -5,6 +5,10 @@ use criterion::{criterion_group, criterion_main};
|
||||
use milli::update::Settings;
|
||||
use utils::Conf;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
|
||||
fn base_conf(builder: &mut Settings) {
|
||||
let displayed_fields =
|
||||
["id", "title", "album", "artist", "genre", "country", "released", "duration"]
|
||||
|
@ -5,6 +5,10 @@ use criterion::{criterion_group, criterion_main};
|
||||
use milli::update::Settings;
|
||||
use utils::Conf;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
|
||||
fn base_conf(builder: &mut Settings) {
|
||||
let displayed_fields = ["title", "body", "url"].iter().map(|s| s.to_string()).collect();
|
||||
builder.set_displayed_fields(displayed_fields);
|
||||
|
@ -42,3 +42,6 @@ funty = "=1.1"
|
||||
[dev-dependencies]
|
||||
maplit = "1.0.2"
|
||||
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;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
|
||||
static GLOBAL_THREAD_POOL: OnceCell<ThreadPool> = OnceCell::new();
|
||||
|
||||
#[derive(Debug, StructOpt)]
|
||||
|
Loading…
Reference in New Issue
Block a user