tracks lexicons and how many times they appeared on the jetstream

feat(server): use snmalloc again on everything

ptr.pet f434daf7 c194514c

verified
Changed files
-31
server
-21
server/Cargo.lock
···
"smol_str",
"snmalloc-rs",
"threadpool",
-
"tikv-jemallocator",
"tokio",
"tokio-util",
"tokio-websockets",
···
checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"
dependencies = [
"num_cpus",
-
]
-
-
[[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]]
-5
server/Cargo.toml
···
rayon = "1.10.0"
parking_lot = { version = "0.12", features = ["send_guard", "hardware-lock-elision"] }
rclite = "0.2.7"
-
-
[target.'cfg(target_env = "msvc")'.dependencies]
snmalloc-rs = "0.3.8"
-
-
[target.'cfg(not(target_env = "msvc"))'.dependencies]
-
tikv-jemallocator = "0.6"
-5
server/src/main.rs
···
mod jetstream;
mod utils;
-
#[cfg(not(target_env = "msvc"))]
-
#[global_allocator]
-
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
-
-
#[cfg(target_env = "msvc")]
#[global_allocator]
static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;