httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <>
Subject [PATCH] Hash Config Commands was: Sharing Config Commands
Date Wed, 25 May 2005 23:27:40 GMT
Paul Querna wrote:
> 1) Scan the entire linked list of modules for any matching commands.
> 2) Put all commands into an apr_hash_t.  The value would be a linked
> list of modules that are interested in that command.
> Solution #1 could be in a few lines of code changes, by equating
> returning NULL to DECLINE_CMD.  It has the disadvantage of scanning a
> double linked list of modules/commands...
> Solution #2 is faster when you have many modules with many commands.
> People with large configurations might even notice a speed improvement...

Attached is a patch that does solution #2.  It works in my test case,
and it seems to work for all the old configuration directives.

If no one cares, I will commit it in a couple days.



View raw message