git.delta.rocks / jrsonnet / refs/commits / faa4e4ef05c4

difftreelog

perf use mimalloc instead of jemalloc

Лач2020-06-28parent: #8dc1868.patch.diff
in: master

3 files changed

modifiedCargo.lockdiffbeforeafterboth
before · Cargo.lock
43 packageslockfile v1
after · Cargo.lock
42 packageslockfile v1
modifiedcmds/jrsonnet/Cargo.tomldiffbeforeafterboth
--- a/cmds/jrsonnet/Cargo.toml
+++ b/cmds/jrsonnet/Cargo.toml
@@ -12,7 +12,8 @@
 jrsonnet-evaluator = { path = "../../crates/jrsonnet-evaluator", version = "1.0.0" }
 jrsonnet-parser = { path = "../../crates/jrsonnet-parser", version = "1.0.0" }
 annotate-snippets = "0.8.0"
-jemallocator = "0.3.2"
+# TODO: Fix mimalloc compile errors, and use them
+mimallocator = "0.1.3"
 
 [dependencies.clap]
 version = "3.0.0-beta.1"
modifiedcmds/jrsonnet/src/main.rsdiffbeforeafterboth
--- a/cmds/jrsonnet/src/main.rs
+++ b/cmds/jrsonnet/src/main.rs
@@ -8,7 +8,7 @@
 use std::{collections::HashMap, path::PathBuf, rc::Rc, str::FromStr};
 
 #[global_allocator]
-static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
+static GLOBAL: mimallocator::Mimalloc = mimallocator::Mimalloc;
 
 enum Format {
 	None,