]> granicus.if.org Git - apache/commit
Performance improvement to mod_mime.c. find_ct() in mod_mime,
authorBill Stoddard <stoddard@apache.org>
Wed, 11 Jul 2001 04:47:02 +0000 (04:47 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 11 Jul 2001 04:47:02 +0000 (04:47 +0000)
commit13793b8a5086a9cd136a63e0b09d2b91328552b9
tree441a11dc9c0e68cea85804dd0f6c970eebea4b7c
parent537f07df5e9e9139cb8b608fcc70164985e647d8
Performance improvement to mod_mime.c. find_ct() in mod_mime,
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. Replacing the tables with hash tables provides
a nice speedup. [Brian Pane <bpane@pacbell.net>]

Had to handmerge a lot of this patch so please review! Dean had some suggestions
for improvement which are not currently implemented.

Submitted by: Brian Pane
Reviewed by: Bill Stoddard

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89535 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/http/mod_mime.c