httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/server protocol.c
Date Sun, 13 Jan 2002 21:30:15 GMT
brianp      02/01/13 13:30:15

  Modified:    server   protocol.c
  Log:
  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.
  
  Revision  Changes    Path
  1.65      +2 -2      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.64
  retrieving revision 1.65
  diff -u -r1.64 -r1.65
  --- protocol.c	2 Jan 2002 23:27:57 -0000	1.64
  +++ protocol.c	13 Jan 2002 21:30:14 -0000	1.65
  @@ -583,8 +583,8 @@
   
       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);
  
  
  

Mime
View raw message