Skip to content

Commit

Permalink
jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
dagou committed Sep 24, 2024
1 parent d3ce6b8 commit e4b4849
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kun_peng"
version = "0.7.1"
version = "0.7.2"
edition = "2021"
authors = ["eric9n@gmail.com"]
description = "Kun-peng: an ultra-fast, low-memory footprint and accurate taxonomy classifier for all"
Expand Down Expand Up @@ -33,6 +33,7 @@ regex = "1.5.4"
flate2 = "1.0"
dashmap = { version = "6.0.1", features = ["rayon"] }
num_cpus = "1.13.1"
jemallocator = "0.5.4"

[dev-dependencies]
criterion = "0.5.1"
Expand Down
3 changes: 3 additions & 0 deletions src/bin/kun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ use kun_peng::utils::find_files;
use std::path::PathBuf;
use std::time::Instant;

#[global_allocator]
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;

#[derive(Parser, Debug, Clone)]
#[clap(author, version, about="build database", long_about = None)]
struct BuildArgs {
Expand Down

0 comments on commit e4b4849

Please sign in to comment.