Re: [PATCH] small apr_hash_t performance fix

2001-09-06 Thread Justin Erenkrantz
On Wed, Sep 05, 2001 at 11:12:18PM -0700, Brian Pane wrote: > The find_entry() function in apr_hash.c is responsible for over > half the apr_pcalloc() calls in the httpd. The calloc call > is somewhat wasteful in this context; 4 of the 5 fields in the > allocated struct get overwritten immediately

[PATCH] small apr_hash_t performance fix

2001-09-06 Thread Brian Pane
The find_entry() function in apr_hash.c is responsible for over half the apr_pcalloc() calls in the httpd. The calloc call is somewhat wasteful in this context; 4 of the 5 fields in the allocated struct get overwritten immediately. Thus the following patch replaces the calloc with an alloc and se