From 2c79a67130cf639bfc56e1a6deecce810e341da1 Mon Sep 17 00:00:00 2001 From: Jade Ellis Date: Mon, 23 Nov 2026 21:49:55 +0000 Subject: [PATCH] feat: Warn when the system allocator is used --- src/main/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/mod.rs b/src/main/mod.rs index 7c5bbe200..a0db10877 100644 --- a/src/main/mod.rs +++ b/src/main/mod.rs @@ -32,6 +32,11 @@ pub fn run() -> Result<()> { pub fn run_with_args(args: &Args) -> Result<()> { // Spawn deadlock detection thread deadlock::spawn(); + #[cfg(not(any(feature = "jemalloc", feature = "mimalloc")))] + conduwuit_core::warn!( + "Your build configuration does not have a non-system allocator enabled. This may result \ + in decreased performance." + ); // Because we're not using rustls default-tls, we have to initialise a TLS // provider