chore: Use mimalloc; 2x faster than glib malloc

This commit is contained in:
Michael Aaron Murphy 2022-03-29 13:16:52 +02:00 committed by Michael Murphy
parent 846c4106f8
commit 34c75cc2b9
3 changed files with 25 additions and 0 deletions

View file

@ -13,6 +13,7 @@ pop-launcher-service = { path = "../service" }
tracing = "0.1.32"
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
dirs = "4.0.0"
mimalloc = "0.1.28"
[dependencies.tokio]
version = "1.17.0"

View file

@ -4,6 +4,11 @@
use pop_launcher_plugins as plugins;
use pop_launcher_service as service;
use mimalloc::MiMalloc;
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
#[tokio::main(flavor = "current_thread")]
async fn main() {
if let Some(plugin) = std::env::args().next() {