Skip to content

Commit e4b4849

Browse files
author
dagou
committed
jemalloc
1 parent d3ce6b8 commit e4b4849

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kun_peng"
3-
version = "0.7.1"
3+
version = "0.7.2"
44
edition = "2021"
55
authors = ["[email protected]"]
66
description = "Kun-peng: an ultra-fast, low-memory footprint and accurate taxonomy classifier for all"
@@ -33,6 +33,7 @@ regex = "1.5.4"
3333
flate2 = "1.0"
3434
dashmap = { version = "6.0.1", features = ["rayon"] }
3535
num_cpus = "1.13.1"
36+
jemallocator = "0.5.4"
3637

3738
[dev-dependencies]
3839
criterion = "0.5.1"

src/bin/kun.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ use kun_peng::utils::find_files;
1717
use std::path::PathBuf;
1818
use std::time::Instant;
1919

20+
#[global_allocator]
21+
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
22+
2023
#[derive(Parser, Debug, Clone)]
2124
#[clap(author, version, about="build database", long_about = None)]
2225
struct BuildArgs {

0 commit comments

Comments
 (0)