Skip to content

Commit 2126625

Browse files
committed
Use jemalloc
1 parent b7c96ee commit 2126625

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

Cargo.lock

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ version = "0.1.0"
88
clap = "2.32.0"
99
fallible-iterator = "0.1.5"
1010
indicatif = "0.11.0"
11+
jemallocator = "0.1.9"
1112
postgres = "0.15.2"
1213
rand = "0.6.0"
1314
rayon = "1.0.2"

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
extern crate clap;
2121
extern crate fallible_iterator;
2222
extern crate indicatif;
23+
extern crate jemallocator;
2324
extern crate postgres;
2425
extern crate rand;
2526
extern crate rayon;
@@ -29,6 +30,9 @@ extern crate string_cache;
2930
mod compressor;
3031
mod database;
3132

33+
#[global_allocator]
34+
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
35+
3236
use compressor::Compressor;
3337
use database::PGEscapse;
3438

0 commit comments

Comments
 (0)