]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Added new functions ap_add_input_filter_handle() and
authorBrian Pane <brianp@apache.org>
Sun, 27 Jan 2002 01:54:54 +0000 (01:54 +0000)
committerBrian Pane <brianp@apache.org>
Sun, 27 Jan 2002 01:54:54 +0000 (01:54 +0000)
commit08002aaebbc8c5196b4d7f960bc017e6ef75bce2
tree6bf871358398b13b964b129a85d613cfd31b6dc6
parent753e0d77c6ebf6b97c322c3ad53c74d248d19928
Added new functions ap_add_input_filter_handle() and
ap_add_output_filter_handle()

There are many places in the core modules where we do
ap_add_input_filter() or ap_add_output_filter() on a
hardcoded filter name (e.g., "CORE" or "BYTERANGE").
This requires a string-to-filter mapping that wastes
CPU time.  (Even though the string lookup uses a trie
for speed, it still ranks as a big consumer of CPU time
because of the large number of filters added per request.)

The new ap_add_*_filter_handle() functions will allow
us to skip the string-to-filter mapping in cases where
the module adding the filter happens to have the
ap_filter_rec_t* for the registered filter (e.g., because
it's the same module that registered the filter in the
first place).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93039 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
include/util_filter.h
server/util_filter.c