Roll back to MiMalloc

This commit is contained in:
Ara Sadoyan
2026-06-04 18:14:22 +02:00
parent 27aca0a3a5
commit 0f09a2e02b
4 changed files with 10 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -127,7 +127,7 @@ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
[[package]] [[package]]
name = "aralez" name = "aralez"
version = "0.9.2" version = "0.92.9"
dependencies = [ dependencies = [
"ahash", "ahash",
"arc-swap", "arc-swap",

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "aralez" name = "aralez"
version = "0.9.2" version = "0.92.9"
edition = "2021" edition = "2021"
[profile.release] [profile.release]

View File

@@ -107,6 +107,9 @@ For getting the best performance on newer hardware use `aralez-x86_64-*.gz`.
```shell ```shell
docker run -d -v /path/to/config:/etc/aralez:rw -p 80:80 -p 443:443 sadoyan/aralez docker run -d -v /path/to/config:/etc/aralez:rw -p 80:80 -p 443:443 sadoyan/aralez
docker run -d -v /path/to/config:/etc/aralez:rw -p 80:80 -p 443:443 sadoyan/aralez:compat
docker run -d -v /path/to/config:/etc/aralez:rw -p 80:80 -p 443:443 ghcr.io/sadoyan/aralez:latest
docker run -d -v /path/to/config:/etc/aralez:rw -p 80:80 -p 443:443 ghcr.io/sadoyan/aralez:compat
``` ```
**Dockerfile :** **Dockerfile :**

View File

@@ -3,10 +3,14 @@ mod utils;
mod web; mod web;
#[global_allocator] #[global_allocator]
// static ALLOC: Jemalloc = Jemalloc;
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
// pub static A: CountingAllocator = CountingAllocator; // pub static A: CountingAllocator = CountingAllocator;
fn main() { fn main() {
if std::env::args().any(|a| a == "--version" || a == "-v") {
println!("aralez {}", env!("CARGO_PKG_VERSION"));
std::process::exit(0);
}
web::start::run(); web::start::run();
} }