Skip to main content

mcraw_tui/
allocator.rs

1//! D1: global allocator. mimalloc is significantly faster than the
2//! system's default allocator (glibc malloc on Linux, NT heap on
3//! Windows) for the heavy bursts the export path does — 18 MB bayer
4//! Vec, 9 MB upload staging, 73 MB readback buffer, all per frame.
5
6use mimalloc::MiMalloc;
7
8#[global_allocator]
9static GLOBAL: MiMalloc = MiMalloc;