optional mimalloc dep for 30% speed up
This commit is contained in:
@@ -12,6 +12,10 @@ use std::{
|
||||
|
||||
use tokenizer::ZernError;
|
||||
|
||||
#[cfg(feature = "mimalloc")]
|
||||
#[global_allocator]
|
||||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
fn compile_file(args: Args) -> Result<(), ZernError> {
|
||||
let source = match fs::read_to_string(&args.path) {
|
||||
Ok(x) => x,
|
||||
|
||||
Reference in New Issue
Block a user