On Thu, 20 Sep 2001, Joshua Chamas wrote:
> If you would humor me, I wonder what the speed would be if
> you used $Server->HTMLEncode() with that <FANFIC> optimization?
> I would be really surprised if it was < 40 req/sec.
Well, this is interesting. I just benchmarked it, and
$Server->HTMLEncode() is 44.48 requests per second, while
Apache::Util::escape_html is 45.80 requests per second. I guess most of
the overhead in $Server->HTMLEncode() was due to multiple calls of the
function. (The <FANFIC> file is about 17k, by the way.)
> Having spent years optimizing perl code ( really, years ),
> I can tell you that you can always optimize more. Pick a number
> that you are happy with _before_ you start, and aim for it.
> Once you get there, stop! Like any other addiction, once
> started it can be hard to quit. :)
Good point. I suppose if my script is "fast enough" and I keep trying to
optimizing it, I'm just using up my time that could better spent on
something else...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]