Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Speeding up Apache RewriteMap script.

by Moron (Curate)
on Apr 25, 2007 at 13:21 UTC ( #612001=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Speeding up Apache RewriteMap script.
in thread Speeding up Apache RewriteMap script.

In your OP you said "As this script is going to be hit so many times by the webserver, I wondered if anyone had ideas on speeding it up?"

So if that is no longer perceived to be the case, I guess we can close this issue now?

__________________________________________________________________________________

^M Free your mind!

Key to hats: ^I=white ^B=black ^P=yellow ^E=red ^C=green ^M=blue - see Moron's scratchpad for fuller explanation.


Comment on Re^3: Speeding up Apache RewriteMap script.
Re^4: Speeding up Apache RewriteMap script.
by graq (Curate) on Apr 25, 2007 at 13:42 UTC

    Apologies for not being clear.

    Apache opens the script and holds it open for its lifetime. RewriteMap writes to it (hence the while(<STDIN>){..} loop) and waits for output from STDOUT.

    For every such mapping (read: every http request), the lookup method is called. I assumed that that is where the main speed up could be attained.

    Although I'm not sure how moot this is with merlyn's reply in play

    -=( Graq )=-

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://612001]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-12-22 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (119 votes), past polls