Re: Adding args to a Request through InputFilter

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Friday 22 January 2010 15:38:30 Ivory wrote:
> I've manage to setup a PerlFixupHandler, and it works perfectly well for
> adding / deleting headers and args.
> 
> But it seems like this process is pretty time-consuming... Any known issue
> about that?
> 
If "pretty time-consuming" means a few microseconds then yes, it may be 
modperl.

If more, it's your code.

To figure out how much mod_perl costs try fetching a small static file with 
and without this lines:

-------------------------------------------
<Perl>
sub My::Handler::handler {0}
</Perl>

PerlFixupHandler My::Handler
-------------------------------------------

Use "ab -n 10000 -c 1 http://..." and compare the results.

Then add your fixup code and try again.

Torsten
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.