+1
.tangled/workflows/build.yml
+1
.tangled/workflows/build.yml
+21
-20
server/Cargo.lock
+21
-20
server/Cargo.lock
···
852
852
checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
853
853
854
854
[[package]]
855
-
name = "libmimalloc-sys"
856
-
version = "0.1.43"
857
-
source = "registry+https://github.com/rust-lang/crates.io-index"
858
-
checksum = "bf88cd67e9de251c1781dbe2f641a1a3ad66eaae831b8a2c38fbdc5ddae16d4d"
859
-
dependencies = [
860
-
"cc",
861
-
"libc",
862
-
]
863
-
864
-
[[package]]
865
855
name = "linux-raw-sys"
866
856
version = "0.9.4"
867
857
source = "registry+https://github.com/rust-lang/crates.io-index"
···
934
924
version = "2.7.5"
935
925
source = "registry+https://github.com/rust-lang/crates.io-index"
936
926
checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
937
-
938
-
[[package]]
939
-
name = "mimalloc"
940
-
version = "0.1.47"
941
-
source = "registry+https://github.com/rust-lang/crates.io-index"
942
-
checksum = "b1791cbe101e95af5764f06f20f6760521f7158f69dbf9d6baf941ee1bf6bc40"
943
-
dependencies = [
944
-
"libmimalloc-sys",
945
-
]
946
927
947
928
[[package]]
948
929
name = "mime"
···
1592
1573
"fjall",
1593
1574
"futures-util",
1594
1575
"itertools",
1595
-
"mimalloc",
1596
1576
"ordered-varint",
1597
1577
"parking_lot",
1598
1578
"quanta",
···
1605
1585
"serde_json",
1606
1586
"smol_str",
1607
1587
"threadpool",
1588
+
"tikv-jemallocator",
1608
1589
"tokio",
1609
1590
"tokio-util",
1610
1591
"tokio-websockets",
···
1764
1745
checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"
1765
1746
dependencies = [
1766
1747
"num_cpus",
1748
+
]
1749
+
1750
+
[[package]]
1751
+
name = "tikv-jemalloc-sys"
1752
+
version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7"
1753
+
source = "registry+https://github.com/rust-lang/crates.io-index"
1754
+
checksum = "cd3c60906412afa9c2b5b5a48ca6a5abe5736aec9eb48ad05037a677e52e4e2d"
1755
+
dependencies = [
1756
+
"cc",
1757
+
"libc",
1758
+
]
1759
+
1760
+
[[package]]
1761
+
name = "tikv-jemallocator"
1762
+
version = "0.6.0"
1763
+
source = "registry+https://github.com/rust-lang/crates.io-index"
1764
+
checksum = "4cec5ff18518d81584f477e9bfdf957f5bb0979b0bac3af4ca30b5b3ae2d2865"
1765
+
dependencies = [
1766
+
"libc",
1767
+
"tikv-jemalloc-sys",
1767
1768
]
1768
1769
1769
1770
[[package]]
+4
-1
server/Cargo.toml
+4
-1
server/Cargo.toml
+2
-1
server/src/main.rs
+2
-1
server/src/main.rs
···
21
21
mod jetstream;
22
22
mod utils;
23
23
24
+
#[cfg(not(target_env = "msvc"))]
24
25
#[global_allocator]
25
-
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
26
+
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
26
27
27
28
#[tokio::main]
28
29
async fn main() {