perf: switch to jemalloc allocator

This commit is contained in:
Greg Heartsfield
2023-05-07 19:32:50 -05:00
parent 2bcddf8bbf
commit 0582a891cc
3 changed files with 29 additions and 0 deletions
+6
View File
@@ -8,6 +8,12 @@ use std::sync::mpsc as syncmpsc;
use std::sync::mpsc::{Receiver as MpscReceiver, Sender as MpscSender};
use std::thread;
use tracing::info;
#[cfg(not(target_env = "msvc"))]
use tikv_jemallocator::Jemalloc;
#[cfg(not(target_env = "msvc"))]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;
/// Start running a Nostr relay server.
fn main() {