···4949infer = { version = "0.19.0", default-features = false, features = ["std"] }
5050jacquard-common = { version = "0.9.5", default-features = false }
5151jacquard-identity = { version = "0.9.5", features = ["tracing"] }
5252+jemallocator = "0.5.4"
5253json-subscriber = { version = "0.2.8", default-features = false, features = [
5354 "tracing-log",
5455 "env-filter",
+8
src/main.rs
···3838use tracing::Level;
3939use tracing_subscriber::EnvFilter;
40404141+// Jemalloc seems to perform better compared to most system allocators,
4242+// especially with multi-threading and long-lived variable-sized
4343+// allocations.
4444+//
4545+// It especially performs a lot better on MUSL (when last benchmarked).
4646+#[global_allocator]
4747+static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
4848+4149#[derive(Debug, Clone)]
4250enum AddressType {
4351 /// An IP socket address.