Use jemalloc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user