Hi,
Are there any reasons why $r->log_error($msg) is (much) slower than print STDERR '['.scalar(localtime()).'] [error] '.$msg."\n" ?
Both are producing the same output (except that the latter goes to the main error_log, and the former to the virtual host error log).
This is happening on win32: Apache/2.0.48 (Win32) mod_perl/1.99_12-dev Perl/v5.8.0 (latest from theoryx5).
A perl-script writing two lines to error_log takes 50ms using $r->log_error and only 15ms using STDERR. Timings are from: ab -n 50 ...
Have you tried benchmarking the calls themselves using Benchmark, instead of a whole request? We just provide a perl interface for ap_log_error, so it's possible that the C call is slow.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]