added jemallocator as default allocator

reasoning: we're going to be doing a lot of heap allocations
new-idea
Avril 4 years ago
parent f8efb25c30
commit e6aa5da965
Signed by: flanchan
GPG Key ID: 284488987C31F630

28
Cargo.lock generated

@ -338,6 +338,12 @@ dependencies = [
"percent-encoding",
]
[[package]]
name = "fs_extra"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2022715d62ab30faffd124d40b76f4134a550a87792276512b18d63272333394"
[[package]]
name = "fuchsia-cprng"
version = "0.1.1"
@ -729,6 +735,27 @@ version = "0.4.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736"
[[package]]
name = "jemalloc-sys"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d3b9f3f5c9b31aa0f5ed3260385ac205db665baa41d49bb8338008ae94ede45"
dependencies = [
"cc",
"fs_extra",
"libc",
]
[[package]]
name = "jemallocator"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43ae63fcfc45e99ab3d1b29a46782ad679e98436c3169d15a167a1108a724b69"
dependencies = [
"jemalloc-sys",
"libc",
]
[[package]]
name = "kernel32-sys"
version = "0.2.2"
@ -1988,6 +2015,7 @@ dependencies = [
"generational-arena",
"getrandom 0.2.1",
"hex-literal 0.3.1",
"jemallocator",
"khash",
"lazy_static",
"log",

@ -23,6 +23,7 @@ futures = "0.3.12"
generational-arena = "0.2.8"
getrandom = "0.2.1"
hex-literal = "0.3.1"
jemallocator = "0.3.2"
khash = "2.0.0"
lazy_static = "1.4.0"
log = "0.4.11"

@ -26,6 +26,11 @@ use color_eyre::{
SectionExt, Help
};
use jemallocator::Jemalloc;
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;
#[macro_use] mod ext; use ext::*;
mod service;

Loading…
Cancel
Save