Re: Notice warnings and performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/25/07, Richard Davey <rich@xxxxxxxxxxxxx> wrote:
Hi Erfan,

Wednesday, July 25, 2007, 9:39:35 AM, you wrote:

> The site I'm working on has a lot of notice warnings, thousands. And
> they are all about: (Notice: Undefined variable..)

> I was wondering if I set the php.ini file to not log these in file or
> display them, does all of these notice warnings still degrade
> performance? Or does it become a performance issue only when you log
> this on either file or display them?

You could always fix them? :)

But sure, setting PHP to ignore notices will stop your logs filling
up, and will of course result in less disk IO, so you'll get a teeny
tiny performance gain from it, but nothing to bet your life savings
on.

Cheers,

Rich
--
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Actually when I was porting an app to PHP 5 E_STRICT it threw tons of
warnings, notices, etc.  It actually added almost half a second of
execution time to the script which is quite a bit more than a "teeny
tiny bit" of performance.

My case might be special in that I had a custom error handler
registered which caused PHP to call a userspace defined function a few
hundred times, but nonetheless the second your script throws any sort
of error there are routines being called which adds time.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux