Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace jemalloc(ator) with mimalloc, which covers wider platforms #315

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions charabia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ german-segmentation = []

[dev-dependencies]
criterion = "0.5"
jemallocator = "0.5.4"
quickcheck = "1"
quickcheck_macros = "1"

mimalloc = "0.1.43"

[[bench]]
name = "bench"
Expand Down
3 changes: 2 additions & 1 deletion charabia/benches/bench.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use charabia::{Language, Script, Segment, Tokenize};
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
use mimalloc::MiMalloc;

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

static DATA_SET: &[((usize, Script, Language), &str)] = &[
// short texts (~130 bytes)
Expand Down
Loading