mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-18 08:17:37 +00:00
- shadowsocks-core is a library contains all necessary functions for running shadowsocks - shadowsocks is a binary crate that ships end-user products ref #326
14 lines
344 B
Rust
14 lines
344 B
Rust
//! Memory allocator
|
|
|
|
#[cfg(feature = "jemalloc")]
|
|
#[global_allocator]
|
|
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
|
|
|
#[cfg(feature = "tcmalloc")]
|
|
#[global_allocator]
|
|
static ALLOC: tcmalloc::TCMalloc = tcmalloc::TCMalloc;
|
|
|
|
#[cfg(feature = "mimalloc")]
|
|
#[global_allocator]
|
|
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
|