improvement: use jemalloc for lower memory usage
This commit is contained in:
parent
4ef995cf7d
commit
f88523988e
3 changed files with 132 additions and 143 deletions
10
Cargo.toml
10
Cargo.toml
|
@ -48,11 +48,7 @@ rand = "0.8.4"
|
|||
# Used to hash passwords
|
||||
rust-argon2 = "0.8.3"
|
||||
# Used to send requests
|
||||
reqwest = { version = "0.11.4", default-features = false, features = ["rustls-tls-native-roots", "socks"] }
|
||||
# Custom TLS verifier
|
||||
rustls = { version = "0.19.1", features = ["dangerous_configuration"] }
|
||||
rustls-native-certs = "0.5.0"
|
||||
webpki = "0.22.0"
|
||||
reqwest = { version = "0.11.4", default-features = false, features = ["rustls-tls", "socks"] }
|
||||
# Used for conduit::Error type
|
||||
thiserror = "1.0.28"
|
||||
# Used to generate thumbnails for images
|
||||
|
@ -87,6 +83,10 @@ thread_local = "1.1.3"
|
|||
hmac = "0.11.0"
|
||||
sha-1 = "0.9.8"
|
||||
|
||||
[target.'cfg(not(target_env = "msvc"))'.dependencies]
|
||||
tikv-jemalloc-ctl = { version = "0.4.2", features = ['use_std'] }
|
||||
tikv-jemallocator = { version = "0.4.1", features = ['unprefixed_malloc_on_supported_platforms'] }
|
||||
|
||||
[features]
|
||||
default = ["conduit_bin", "backend_sqlite", "backend_rocksdb"]
|
||||
backend_sled = ["sled"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue