tracks lexicons and how many times they appeared on the jetstream

refactor(server): use jemalloc again lol

ci: add gnused

ptr.pet 452aff95 9581c553

verified
Changed files
+28 -22
.tangled
workflows
server
+1
.tangled/workflows/build.yml
···
- bun
- curl
- gcc
+
- gnused
steps:
- name: test server
+21 -20
server/Cargo.lock
···
checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
[[package]]
-
name = "libmimalloc-sys"
-
version = "0.1.43"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "bf88cd67e9de251c1781dbe2f641a1a3ad66eaae831b8a2c38fbdc5ddae16d4d"
-
dependencies = [
-
"cc",
-
"libc",
-
]
-
-
[[package]]
name = "linux-raw-sys"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
···
version = "2.7.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
-
-
[[package]]
-
name = "mimalloc"
-
version = "0.1.47"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "b1791cbe101e95af5764f06f20f6760521f7158f69dbf9d6baf941ee1bf6bc40"
-
dependencies = [
-
"libmimalloc-sys",
-
]
[[package]]
name = "mime"
···
"fjall",
"futures-util",
"itertools",
-
"mimalloc",
"ordered-varint",
"parking_lot",
"quanta",
···
"serde_json",
"smol_str",
"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]]
+4 -1
server/Cargo.toml
···
rclite = "0.2.7"
arc-swap = "1.7.1"
ahash = { version = "0.8.12", features = ["serde"] }
-
mimalloc = "*"
+
+
+
[target.'cfg(not(target_env = "msvc"))'.dependencies]
+
tikv-jemallocator = "0.6"
+2 -1
server/src/main.rs
···
mod jetstream;
mod utils;
+
#[cfg(not(target_env = "msvc"))]
#[global_allocator]
-
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
+
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
#[tokio::main]
async fn main() {