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
3636
37[[package]]37[[package]]
38name = "cc"38name = "cc"
39version = "1.0.54"39version = "1.0.55"
40source = "registry+https://github.com/rust-lang/crates.io-index"40source = "registry+https://github.com/rust-lang/crates.io-index"
41checksum = "7bbb73db36c1246e9034e307d0fba23f9a2e251faa47ade70c1bd252220c8311"41checksum = "b1be3409f94d7bdceeb5f5fac551039d9b3f00e25da7a74fc4d33400a0d96368"
4242
43[[package]]43[[package]]
44name = "clap"44name = "clap"
75source = "registry+https://github.com/rust-lang/crates.io-index"75source = "registry+https://github.com/rust-lang/crates.io-index"
76checksum = "d6173fd61b610d15a7566dd7b7620775627441c4ab9dac8906e17cb93a24b782"76checksum = "d6173fd61b610d15a7566dd7b7620775627441c4ab9dac8906e17cb93a24b782"
77
78[[package]]
79name = "fs_extra"
80version = "1.1.0"
81source = "registry+https://github.com/rust-lang/crates.io-index"
82checksum = "5f2a4a2034423744d2cc7ca2068453168dcdb82c438419e639a26bd87839c674"
8377
84[[package]]78[[package]]
85name = "heck"79name = "heck"
99 "autocfg",93 "autocfg",
100]94]
101
102[[package]]
103name = "jemalloc-sys"
104version = "0.3.2"
105source = "registry+https://github.com/rust-lang/crates.io-index"
106checksum = "0d3b9f3f5c9b31aa0f5ed3260385ac205db665baa41d49bb8338008ae94ede45"
107dependencies = [
108 "cc",
109 "fs_extra",
110 "libc",
111]
112
113[[package]]
114name = "jemallocator"
115version = "0.3.2"
116source = "registry+https://github.com/rust-lang/crates.io-index"
117checksum = "43ae63fcfc45e99ab3d1b29a46782ad679e98436c3169d15a167a1108a724b69"
118dependencies = [
119 "jemalloc-sys",
120 "libc",
121]
12295
123[[package]]96[[package]]
124name = "jrsonnet"97name = "jrsonnet"
125version = "1.0.0"98version = "1.0.0"
126dependencies = [99dependencies = [
127 "annotate-snippets",100 "annotate-snippets",
128 "clap",101 "clap",
129 "jemallocator",
130 "jrsonnet-evaluator",102 "jrsonnet-evaluator",
131 "jrsonnet-parser",103 "jrsonnet-parser",
104 "mimallocator",
132]105]
133106
134[[package]]107[[package]]
188source = "registry+https://github.com/rust-lang/crates.io-index"161source = "registry+https://github.com/rust-lang/crates.io-index"
189checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771"162checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771"
163
164[[package]]
165name = "mimalloc-sys"
166version = "0.1.6"
167source = "registry+https://github.com/rust-lang/crates.io-index"
168checksum = "4aa3cefb626f6ae3d0b2f71c5378c89d2b1d4d7bc246b0ca9a7ee61a4daad291"
169dependencies = [
170 "cc",
171 "libc",
172]
173
174[[package]]
175name = "mimallocator"
176version = "0.1.3"
177source = "registry+https://github.com/rust-lang/crates.io-index"
178checksum = "2d44fe4ebf6b538fcf39d9975c2b90bb3232d1ba8e8bffeacd004f27b20c577a"
179dependencies = [
180 "mimalloc-sys",
181]
190182
191[[package]]183[[package]]
192name = "os_str_bytes"184name = "os_str_bytes"
modifiedcmds/jrsonnet/Cargo.tomldiffbeforeafterboth
12jrsonnet-evaluator = { path = "../../crates/jrsonnet-evaluator", version = "1.0.0" }12jrsonnet-evaluator = { path = "../../crates/jrsonnet-evaluator", version = "1.0.0" }
13jrsonnet-parser = { path = "../../crates/jrsonnet-parser", version = "1.0.0" }13jrsonnet-parser = { path = "../../crates/jrsonnet-parser", version = "1.0.0" }
14annotate-snippets = "0.8.0"14annotate-snippets = "0.8.0"
15# TODO: Fix mimalloc compile errors, and use them
15jemallocator = "0.3.2"16mimallocator = "0.1.3"
1617
17[dependencies.clap]18[dependencies.clap]
18version = "3.0.0-beta.1"19version = "3.0.0-beta.1"
modifiedcmds/jrsonnet/src/main.rsdiffbeforeafterboth
8use std::{collections::HashMap, path::PathBuf, rc::Rc, str::FromStr};8use std::{collections::HashMap, path::PathBuf, rc::Rc, str::FromStr};
99
10#[global_allocator]10#[global_allocator]
11static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;11static GLOBAL: mimallocator::Mimalloc = mimallocator::Mimalloc;
1212
13enum Format {13enum Format {
14 None,14 None,