diff options
author | Valentin Bartenev <vbart@nginx.com> | 2020-10-26 22:26:02 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2020-10-26 22:26:02 +0300 |
commit | 434c3228d9bbdc31ff15be470a814344e5f13a4e (patch) | |
tree | 913b17a5f7adf679d766a73740a8fa0e2d177a9c /src/nxt_http_request.c | |
parent | 84136eb49ded615d7408d656ca9791542a0280a0 (diff) | |
download | unit-434c3228d9bbdc31ff15be470a814344e5f13a4e.tar.gz unit-434c3228d9bbdc31ff15be470a814344e5f13a4e.tar.bz2 |
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.
Diffstat (limited to 'src/nxt_http_request.c')
-rw-r--r-- | src/nxt_http_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |