From: Brian Pane Date: Sun, 13 Jan 2002 21:30:14 +0000 (+0000) Subject: A modification to reduce the memory usage of the server: X-Git-Tag: 2.0.31~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ce2fa7b99d7ecb922f931559ddac87f92e8a0c3;p=apache A modification to reduce the memory usage of the server: Reduced the initial size of the r->headers_in and r->subprocess_env tables...this saves us 600 bytes per request, which (based on tests I just ran) helps keep r->pool from overflowing its initial 8KB allocation and having to alloc another 8KB block. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92843 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index ed8fd7a5a8..21fbd789a9 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -583,8 +583,8 @@ request_rec *ap_read_request(conn_rec *conn) r->allowed_methods = ap_make_method_list(p, 2); - r->headers_in = apr_table_make(r->pool, 50); - r->subprocess_env = apr_table_make(r->pool, 50); + r->headers_in = apr_table_make(r->pool, 25); + r->subprocess_env = apr_table_make(r->pool, 25); r->headers_out = apr_table_make(r->pool, 12); r->err_headers_out = apr_table_make(r->pool, 5); r->notes = apr_table_make(r->pool, 5);