]> granicus.if.org Git - apache/commitdiff
A modification to reduce the memory usage of the server:
authorBrian Pane <brianp@apache.org>
Sun, 13 Jan 2002 21:30:14 +0000 (21:30 +0000)
committerBrian Pane <brianp@apache.org>
Sun, 13 Jan 2002 21:30:14 +0000 (21:30 +0000)
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

server/protocol.c

index ed8fd7a5a82da495bf6c689d1d8c8a565d207cfd..21fbd789a95d0c0535fa86b8e0b07605481cf7bd 100644 (file)
@@ -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);