* astra: increase thread pool size * astra: add required dependencies * astra: disable `mimalloc` security features
@@ -5,8 +5,9 @@ edition = "2021"
[dependencies]
astra = "0.1.2"
+num_cpus = "1.13.1"
http = "0.2.6"
-mimalloc = "0.1"
+mimalloc = { version = "0.1", default-features = false }
simd-json = "0.4"
serde = { version = "1.0", features = ["derive"] }
@@ -6,6 +6,7 @@ use http::StatusCode;
fn main() {
Server::bind("0.0.0.0:8080")
+ .max_workers(num_cpus::get() * 20)
.http1_pipeline_flush(true)
.http1_only(true)
.serve(serve)