From f915e5d51ffbafaee20234f2b811603d37aefd8f Mon Sep 17 00:00:00 2001 From: Anna Date: Thu, 4 Apr 2024 14:53:16 -0400 Subject: [PATCH] feat(server): use mimalloc as allocator --- server/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/main.rs b/server/src/main.rs index 6c95682..77feccc 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -50,6 +50,9 @@ pub mod updater; pub mod logging; pub mod influx; +#[global_allocator] +static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; + pub type WsStream = WebSocketStream; pub struct State {