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]]
name = "aralez"
version = "0.9.2"
version = "0.92.9"
dependencies = [
"ahash",
"arc-swap",

View File

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

View File

@@ -107,6 +107,9 @@ For getting the best performance on newer hardware use `aralez-x86_64-*.gz`.
```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: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 :**

View File

@@ -3,10 +3,14 @@ mod utils;
mod web;
#[global_allocator]
// static ALLOC: Jemalloc = Jemalloc;
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
// pub static A: CountingAllocator = CountingAllocator;
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();
}