Re: [PHP] Notice warnings and performance
On Wed, July 25, 2007 3:39 am, Erfan Shirazi 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? It's still a performance issue, but not as large, as it's not actually cramming them onto the hard drive. There are E_NOTICE messages that are NOT about undefined variables and that you probably DO want to catch. The correct solution, however, is to FIX YOUR CODE. Tackle a half-dozen of those notices every day until they are all gone. If you tackle the ones that seem to happen the most first, you'll be amazed how quickly your log slims down to managable. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Notice warnings and performance
Hi all 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? Thx /E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Notice warnings and performance
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
Re: [PHP] Notice warnings and performance
On 7/25/07, Richard Davey [EMAIL PROTECTED] 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