mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Merge pull request #60 from Kerollmops/improve-perfs
Improve performances
This commit is contained in:
commit
b2e9ae4136
10
Cargo.toml
10
Cargo.toml
@ -29,21 +29,25 @@ rev = "c2eb140"
|
|||||||
|
|
||||||
[dependencies.group-by]
|
[dependencies.group-by]
|
||||||
git = "https://github.com/Kerollmops/group-by.git"
|
git = "https://github.com/Kerollmops/group-by.git"
|
||||||
rev = "cab857b"
|
rev = "f1f5d8f"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["simd"]
|
default = ["simd"]
|
||||||
i128 = ["bincode/i128", "byteorder/i128"]
|
i128 = ["bincode/i128", "byteorder/i128"]
|
||||||
simd = ["rocksdb/sse"]
|
|
||||||
portable = ["rocksdb/portable"]
|
portable = ["rocksdb/portable"]
|
||||||
nightly = []
|
simd = ["rocksdb/sse"]
|
||||||
|
nightly = ["hashbrown/nightly", "group-by/nightly"]
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
csv = "1.0"
|
csv = "1.0"
|
||||||
elapsed = "0.1"
|
elapsed = "0.1"
|
||||||
|
jemallocator = "0.1"
|
||||||
quickcheck = "0.7"
|
quickcheck = "0.7"
|
||||||
rand = "0.6"
|
rand = "0.6"
|
||||||
rand_xorshift = "0.1"
|
rand_xorshift = "0.1"
|
||||||
structopt = "0.2"
|
structopt = "0.2"
|
||||||
tempfile = "3.0"
|
tempfile = "3.0"
|
||||||
termcolor = "1.0"
|
termcolor = "1.0"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
debug = true
|
||||||
|
@ -32,6 +32,11 @@ We made some tests on remote machines and found that we can handle with a datase
|
|||||||
|
|
||||||
Network is mesured, servers are located in amsterdam and tests are made between two different datacenters.
|
Network is mesured, servers are located in amsterdam and tests are made between two different datacenters.
|
||||||
|
|
||||||
|
### Notes
|
||||||
|
|
||||||
|
The default Rust allocator has recently been [changed to use the system allocator](https://github.com/rust-lang/rust/pull/51241/).
|
||||||
|
We have seen much better performances when [using jemalloc as the global allocator](https://github.com/alexcrichton/jemallocator#documentation).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Usage and examples
|
## Usage and examples
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#[global_allocator]
|
||||||
|
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||||
|
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#[global_allocator]
|
||||||
|
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||||
|
|
||||||
use std::collections::btree_map::{BTreeMap, Entry};
|
use std::collections::btree_map::{BTreeMap, Entry};
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
|
Loading…
Reference in New Issue
Block a user