]> granicus.if.org Git - apache/commit
lookup_map_txtfile: used buffered i/o rather than reading RewriteMap txt: files
authorGreg Ames <gregames@apache.org>
Thu, 14 Apr 2005 21:26:01 +0000 (21:26 +0000)
committerGreg Ames <gregames@apache.org>
Thu, 14 Apr 2005 21:26:01 +0000 (21:26 +0000)
commit0aee87d2ee7af85e9c138d48eda920c5be323238
tree7fdc709bf6bd8b498576bb6b861c7bf72718dccf
parent6efa7782137ea7f5263cac646a4b1d074c7844bd
lookup_map_txtfile: used buffered i/o rather than reading RewriteMap txt: files
one byte at a time.

I was horrified to see a dump of a server with hundreds of worker threads in
read() syscalls,  all trying to read a 149k RewriteMap file simultaneously.
each thread finds one key, inserts it into the cache, then the rest of the
information is discarded.  there are further improvements which could be made but
let's try the simplest first.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@161354 13f79535-47bb-0310-9956-ffa450edef68
modules/mappers/mod_rewrite.c