[feat] use mimalloc

This commit is contained in:
2025-07-11 13:13:14 +02:00
parent 24e6c8c0b5
commit b8329bd0b1
6 changed files with 34 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ lanspread-mdns = { path = "../../lanspread-mdns" }
# external
eyre = { workspace = true }
log = { workspace = true }
mimalloc = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tauri = { workspace = true }

View File

@@ -1,6 +1,11 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use mimalloc::MiMalloc;
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
fn main() {
lanspread_tauri_deno_ts_lib::run()
}