feat(remoteingress-bin): use mimalloc as the global allocator to reduce memory overhead and improve allocation performance

This commit is contained in:
2026-02-26 17:39:40 +00:00
parent 3474e8c310
commit 1aae4b8c8e
5 changed files with 32 additions and 1 deletions

View File

@@ -17,3 +17,4 @@ serde_json = "1"
log = "0.4"
env_logger = "0.11"
rustls = { version = "0.23", default-features = false, features = ["ring"] }
mimalloc = "0.1"

View File

@@ -1,3 +1,6 @@
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
use clap::Parser;
use serde::{Deserialize, Serialize};
use std::sync::Arc;