switch to jemalloc
This commit is contained in:
parent
6a8ec2354f
commit
015aee89b8
|
@ -240,6 +240,7 @@ dependencies = [
|
||||||
"rayon",
|
"rayon",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_with",
|
"serde_with",
|
||||||
|
"tikv-jemallocator",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tokio-stream",
|
"tokio-stream",
|
||||||
"tokio-util",
|
"tokio-util",
|
||||||
|
@ -1240,6 +1241,26 @@ dependencies = [
|
||||||
"once_cell",
|
"once_cell",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "tikv-jemalloc-sys"
|
||||||
|
version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "cd3c60906412afa9c2b5b5a48ca6a5abe5736aec9eb48ad05037a677e52e4e2d"
|
||||||
|
dependencies = [
|
||||||
|
"cc",
|
||||||
|
"libc",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "tikv-jemallocator"
|
||||||
|
version = "0.6.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "4cec5ff18518d81584f477e9bfdf957f5bb0979b0bac3af4ca30b5b3ae2d2865"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
"tikv-jemalloc-sys",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "time"
|
name = "time"
|
||||||
version = "0.3.37"
|
version = "0.3.37"
|
||||||
|
|
|
@ -3,6 +3,9 @@ name = "breeze"
|
||||||
version = "0.2.8"
|
version = "0.2.8"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
[profile.dev.package]
|
||||||
|
tikv-jemalloc-sys = { opt-level = 3 }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum-extra = { version = "0.10.0", default-features = false, features = [
|
axum-extra = { version = "0.10.0", default-features = false, features = [
|
||||||
"tracing",
|
"tracing",
|
||||||
|
@ -29,3 +32,6 @@ dashmap = { version = "6.1.0", features = ["rayon", "inline"] }
|
||||||
rayon = "1.8"
|
rayon = "1.8"
|
||||||
atomic-time = "0.1.4"
|
atomic-time = "0.1.4"
|
||||||
img-parts = "0.3"
|
img-parts = "0.3"
|
||||||
|
|
||||||
|
[target.'cfg(not(target_env = "msvc"))'.dependencies]
|
||||||
|
tikv-jemallocator = "0.6"
|
||||||
|
|
|
@ -18,6 +18,13 @@ mod index;
|
||||||
mod new;
|
mod new;
|
||||||
mod view;
|
mod view;
|
||||||
|
|
||||||
|
#[cfg(not(target_env = "msvc"))]
|
||||||
|
use tikv_jemallocator::Jemalloc;
|
||||||
|
|
||||||
|
#[cfg(not(target_env = "msvc"))]
|
||||||
|
#[global_allocator]
|
||||||
|
static GLOBAL: Jemalloc = Jemalloc;
|
||||||
|
|
||||||
/// breeze file server.
|
/// breeze file server.
|
||||||
#[derive(FromArgs, Debug)]
|
#[derive(FromArgs, Debug)]
|
||||||
struct Args {
|
struct Args {
|
||||||
|
|
Loading…
Reference in New Issue