httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <>
Subject performance of mod_mime
Date Thu, 21 Jun 2001 21:21:11 GMT
I spent some time recently profiling the latest 2.0 httpd source with gprof.
One surprising bottleneck that showed up in the results was the find_ct
function in mod_mime, which spends a lot of time in apr_table_get
calls.  Using the default httpd.conf, the tables for languages and
charsets are somewhat large, so the time spent scanning them on each
request is significant.

It looks straightforward to fix this by replacing the tables with hash 
Is anybody working on this already?  If not, I'm willing to contribute a
patch if there's interest.


View raw message