Use mimalloc memory allocator

This commit is contained in:
Caelan Sayler
2024-12-19 14:25:40 +00:00
committed by Caelan
parent 26f877f55d
commit ea5049347b
5 changed files with 32 additions and 0 deletions

View File

@@ -105,6 +105,7 @@ webview2-com = "0.33"
libloading.workspace = true
strsim.workspace = true
same-file.workspace = true
mimalloc.workspace = true
# filelocksmith.workspace = true
[dev-dependencies]

View File

@@ -1,6 +1,11 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
#![allow(dead_code)]
// https://github.com/rust-lang/rust/issues/92173
use mimalloc::MiMalloc;
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
#[macro_use]
extern crate log;

View File

@@ -1,6 +1,11 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
#![allow(dead_code)]
// https://github.com/rust-lang/rust/issues/92173
use mimalloc::MiMalloc;
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
#[macro_use]
extern crate log;