Use jemalloc

This commit is contained in:
2026-05-17 12:07:28 +02:00
parent 364fd768b3
commit 93a87088db
3 changed files with 26 additions and 0 deletions

View File

@@ -16,6 +16,10 @@ use crate::{
ui::{AppWindow, ImageBucket},
};
/// Use jemalloc to reduce memory fragmentation.
#[global_allocator]
static ALLOCATOR: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
mod api;
pub mod cachemap;
mod thumbhash;