butcher/main: use mimalloc
This commit is contained in:
parent
bdd3fcb467
commit
ec77526a6b
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -359,6 +359,7 @@ dependencies = [
|
||||||
"metrics",
|
"metrics",
|
||||||
"metrics-exporter-prometheus",
|
"metrics-exporter-prometheus",
|
||||||
"metrics-util",
|
"metrics-util",
|
||||||
|
"mimalloc",
|
||||||
"rand",
|
"rand",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"serde",
|
"serde",
|
||||||
|
|
|
@ -20,3 +20,4 @@ texting_robots = "0.2"
|
||||||
metrics = "0.20"
|
metrics = "0.20"
|
||||||
metrics-util = "0.14"
|
metrics-util = "0.14"
|
||||||
metrics-exporter-prometheus = "0.11"
|
metrics-exporter-prometheus = "0.11"
|
||||||
|
mimalloc = { version = "*", default-features = false }
|
||||||
|
|
|
@ -14,6 +14,9 @@ use trend_setter::UpdateSet;
|
||||||
mod config;
|
mod config;
|
||||||
mod trend_setter;
|
mod trend_setter;
|
||||||
|
|
||||||
|
#[global_allocator]
|
||||||
|
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||||
|
|
||||||
async fn is_profane(profanity: &WordList, post: &Post) -> bool {
|
async fn is_profane(profanity: &WordList, post: &Post) -> bool {
|
||||||
if post.sensitive == Some(true) {
|
if post.sensitive == Some(true) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user