Skip to content

Commit

Permalink
jxl-oxide-cli: Use mimalloc (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
tirr-c authored Apr 13, 2024
1 parent 0f8c5b6 commit c12b247
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/jxl-oxide-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ default-run = "jxl-oxide"

[dependencies]
lcms2 = "6.0.4"
mimalloc = "0.1.39"
miniz_oxide = "0.7.2"
png = "0.17.13"
tracing.workspace = true
Expand Down
3 changes: 3 additions & 0 deletions crates/jxl-oxide-cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use clap::Parser;
use jxl_oxide_cli::{Args, Subcommands};

#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

fn main() -> std::process::ExitCode {
let Args {
subcommand,
Expand Down

0 comments on commit c12b247

Please sign in to comment.