50% performance boost from jemalloc!

This commit is contained in:
Tony Garnock-Jones 2023-10-04 21:28:47 +02:00
parent 16681841a7
commit 8dead81cef
3 changed files with 27 additions and 1 deletions

23
Cargo.lock generated
View File

@ -1973,6 +1973,7 @@ dependencies = [
"structopt",
"syndicate",
"syndicate-macros",
"tikv-jemallocator",
"tokio",
"tokio-tungstenite",
"tokio-util",
@ -1984,7 +1985,7 @@ dependencies = [
[[package]]
name = "syndicate-tools"
version = "0.6.0"
version = "0.7.0"
dependencies = [
"clap 4.4.5",
"clap_complete",
@ -2046,6 +2047,26 @@ dependencies = [
"once_cell",
]
[[package]]
name = "tikv-jemalloc-sys"
version = "0.5.4+5.3.0-patched"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9402443cb8fd499b6f327e40565234ff34dbda27460c5b47db0db77443dd85d1"
dependencies = [
"cc",
"libc",
]
[[package]]
name = "tikv-jemallocator"
version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "965fe0c26be5c56c94e38ba547249074803efd52adfb66de62107d95aab3eaca"
dependencies = [
"libc",
"tikv-jemalloc-sys",
]
[[package]]
name = "tinytemplate"
version = "1.2.1"

View File

@ -26,6 +26,8 @@ noise-rust-crypto = "0.5"
notify = "4.0"
structopt = "0.3"
tikv-jemallocator = "0.5.0"
tungstenite = "0.13"
tokio-tungstenite = "0.14"

View File

@ -26,6 +26,9 @@ mod protocol;
mod script;
mod services;
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
mod schemas {
include!(concat!(env!("OUT_DIR"), "/src/schemas/mod.rs"));
}