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

@ -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() {