improvement: switch to jemalloc allocator

This commit is contained in:
Greg Heartsfield
2023-04-06 18:33:30 -05:00
parent 8e4e2d824b
commit 80c459c36c
3 changed files with 30 additions and 0 deletions

View File

@@ -9,6 +9,13 @@ 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() {
let args = CLIArgs::parse();