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 ...


thanks, -Kurt.

--
Kurt George Gjerde
[EMAIL PROTECTED]
ICQ:156792385



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to