|
@@ -1,3 +1,4 @@
|
|
|
|
+#[cfg(not(target_os = "macos"))]
|
|
#[global_allocator]
|
|
#[global_allocator]
|
|
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
|
|
|
|
|
@@ -100,8 +101,8 @@ async fn main() -> std::io::Result<()> {
|
|
.backlog(1024)
|
|
.backlog(1024)
|
|
.bind("techempower", "0.0.0.0:8080", |cfg| {
|
|
.bind("techempower", "0.0.0.0:8080", |cfg| {
|
|
cfg.memory_pool(PoolId::P1);
|
|
cfg.memory_pool(PoolId::P1);
|
|
- PoolId::P1.set_read_params(65535, 1024);
|
|
|
|
- PoolId::P1.set_write_params(65535, 1024);
|
|
|
|
|
|
+ PoolId::P1.set_read_params(65535, 8192);
|
|
|
|
+ PoolId::P1.set_write_params(65535, 8192);
|
|
|
|
|
|
HttpService::build()
|
|
HttpService::build()
|
|
.keep_alive(KeepAlive::Os)
|
|
.keep_alive(KeepAlive::Os)
|