supressing errors is really slow |
[eluser]Sean Murphy[/eluser]
I wasn't aware of this either until I came across this the other day: 63+ best practice to optimize PHP code performances
[eluser]Paul Burdick[/eluser]
Derek Jones and I discovered this, I think, early last year and we were quite surprised too. We did find an explanation as to the why in a PHP bug report on php.net, but I cannot seem to find it right now. As xwero mentions there are certain functions that send back a warning error on failure so it does make sense to use it. Though with loops, it seems to make more sense to use error_reporting to suppress errors instead, if it will not suppress an error that might be valuable. I am fairly sure CI might be doing this in a few places and I will make a note for us to look into it for the next version. |
Welcome Guest, Not a member yet? Register Sign In |