apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject Re: [PATCH] small apr_hash_t performance fix
Date Thu, 06 Sep 2001 06:38:18 GMT
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.  Thus the following
> patch replaces the calloc with an alloc and sets the one necessary
> field to NULL.

Committed.  Thanks.  -- justin


Mime
View raw message