Move setting up jemalloc out of library crate (#60)

This commit is contained in:
Azrenbeth
2021-09-14 11:26:21 +01:00
committed by GitHub
parent a951ba4dae
commit 8c72a0de52
2 changed files with 4 additions and 4 deletions

View File

@@ -22,10 +22,6 @@
use pyo3::{exceptions, prelude::*};
#[cfg(feature = "jemalloc")]
#[global_allocator]
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
use clap::{crate_authors, crate_description, crate_name, crate_version, value_t, App, Arg};
use indicatif::{ProgressBar, ProgressStyle};
use rayon::prelude::*;

View File

@@ -16,6 +16,10 @@
//! Synapse instance's database. Specifically, it aims to reduce the number of
//! rows that a given room takes up in the `state_groups_state` table.
#[cfg(feature = "jemalloc")]
#[global_allocator]
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
use synapse_compress_state as comp_state;
fn main() {