From 434c3228d9bbdc31ff15be470a814344e5f13a4e Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 26 Oct 2020 22:26:02 +0300 Subject: [PATCH] Increased request memory pool size. Previous value was too small, which reduced efficiency of the pool causing a lot of additional allocations even for simple request and response. --- src/nxt_http_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c index 76fb3427..650c1a89 100644 --- a/src/nxt_http_request.c +++ b/src/nxt_http_request.c @@ -220,7 +220,7 @@ nxt_http_request_create(nxt_task_t *task) nxt_buf_t *last; nxt_http_request_t *r; - mp = nxt_mp_create(1024, 128, 256, 32); + mp = nxt_mp_create(4096, 128, 512, 32); if (nxt_slow_path(mp == NULL)) { return NULL; }