On Wed, 2 Feb 2000, Steve Reppucci wrote:
>
> Here's a tiny performance tweak that I stumbled across that I don't
> believe I've seen in any of the other online docs. (Stas, maybe you
> can suck this into the guide if you think it's something new...)
>
> In doing some tweaking on one of our modperl servers earlier this
> week, I noticed via 'truss' that a bunch of 'stat's were being done
> for non-existent files.
>
> The fact that they are non-existent is cool, because it's a site that
> has no document root, its sole purpose is to dynamically generate and
> cache date bar images in a bunch of different styles
> (http://date.boston.com/, BTW.)
>
> But I didn't like the thought that these stat calls were happening for
> each request.
>
> So, my solution was to add the following to the VirtualHost section
> for that host:
>
> <VirtualHost 199.95.74.82:80>
> .
> .
> PerlTransHandler "sub { return OK; }"
one less subroutine call if you make that:
PerlTransHandler Apache::OK
there should probably be an apache directive to turn off the default trans
handler, if you know you don't need it. any any case, we should document
this somewhere, great find steve!
>
> Here's a tiny performance tweak that I stumbled across that I don't
> believe I've seen in any of the other online docs. (Stas, maybe you
> can suck this into the guide if you think it's something new...)
>
> In doing some tweaking on one of our modperl servers earlier this
> week, I noticed via 'truss' that a bunch of 'stat's were being done
> for non-existent files.
>
> The fact that they are non-existent is cool, because it's a site that
> has no document root, its sole purpose is to dynamically generate and
> cache date bar images in a bunch of different styles
> (http://date.boston.com/, BTW.)
>
> But I didn't like the thought that these stat calls were happening for
> each request.
>
> So, my solution was to add the following to the VirtualHost section
> for that host:
>
> <VirtualHost 199.95.74.82:80>
> .
> .
> PerlTransHandler "sub { return OK; }"
one less subroutine call if you make that:
PerlTransHandler Apache::OK
there should probably be an apache directive to turn off the default trans
handler, if you know you don't need it. any any case, we should document
this somewhere, great find steve!