feat: Warn when the system allocator is used

This commit is contained in:
Jade Ellis authored and Ellis Git committed 2026-11-23 22:32:35 +00:00
1 parent 8b9000cdf4
commit 2c79a67130
1 file changed
+5
+5
View File
@@ -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