-----Original Message----- From: Brian Pane [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 11:30 AM To: [EMAIL PROTECTED] Subject: Re: remaining CPU bottlenecks in 2.0 dean gaudet wrote: [...] >>* memset() is called mostly from apr_pcalloc(), which in turn is >> used in too many places to yield any easy optimization opportunities. >> > >sometimes folks are lazy and ask for zeroed memory out of habit, when they >could easily deal with garbage at less cost. > Some good news here: I dug through the profile data and found that over half the httpd's calls to apr_pcalloc are from one function, 'find_entry' in the apr_hash_set implementation. It uses apr_pcalloc to allocate a struct with 5 fields, and then it immediately overwrites 4 of those fields. I'll submit a patch to the APR dev list to fix this. --Brian
