-21
server/Cargo.lock
-21
server/Cargo.lock
···
1573
1573
"smol_str",
1574
1574
"snmalloc-rs",
1575
1575
"threadpool",
1576
-
"tikv-jemallocator",
1577
1576
"tokio",
1578
1577
"tokio-util",
1579
1578
"tokio-websockets",
···
1751
1750
checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"
1752
1751
dependencies = [
1753
1752
"num_cpus",
1754
-
]
1755
-
1756
-
[[package]]
1757
-
name = "tikv-jemalloc-sys"
1758
-
version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7"
1759
-
source = "registry+https://github.com/rust-lang/crates.io-index"
1760
-
checksum = "cd3c60906412afa9c2b5b5a48ca6a5abe5736aec9eb48ad05037a677e52e4e2d"
1761
-
dependencies = [
1762
-
"cc",
1763
-
"libc",
1764
-
]
1765
-
1766
-
[[package]]
1767
-
name = "tikv-jemallocator"
1768
-
version = "0.6.0"
1769
-
source = "registry+https://github.com/rust-lang/crates.io-index"
1770
-
checksum = "4cec5ff18518d81584f477e9bfdf957f5bb0979b0bac3af4ca30b5b3ae2d2865"
1771
-
dependencies = [
1772
-
"libc",
1773
-
"tikv-jemalloc-sys",
1774
1753
]
1775
1754
1776
1755
[[package]]
-5
server/Cargo.toml
-5
server/Cargo.toml
···
30
30
rayon = "1.10.0"
31
31
parking_lot = { version = "0.12", features = ["send_guard", "hardware-lock-elision"] }
32
32
rclite = "0.2.7"
33
-
34
-
[target.'cfg(target_env = "msvc")'.dependencies]
35
33
snmalloc-rs = "0.3.8"
36
-
37
-
[target.'cfg(not(target_env = "msvc"))'.dependencies]
38
-
tikv-jemallocator = "0.6"
-5
server/src/main.rs
-5
server/src/main.rs
···
21
21
mod jetstream;
22
22
mod utils;
23
23
24
-
#[cfg(not(target_env = "msvc"))]
25
-
#[global_allocator]
26
-
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
27
-
28
-
#[cfg(target_env = "msvc")]
29
24
#[global_allocator]
30
25
static ALLOC: snmalloc_rs::SnMalloc = snmalloc_rs::SnMalloc;
31
26