2 ms·
Define "dramatic slowdowns" ? added: Apparently someone on php.net agrees with you http://php.net/manual/en/language.operators.errorcontrol.php#102543 http://
by ck2 14y ago
Define "dramatic slowdowns" ?
added: Apparently someone on php.net agrees with you
http://php.net/manual/en/language.operators.errorcontrol.php#102543 http://php.net/manual/en/language.operators.errorcontrol.php...
they say it takes 1.7 times as long BUT that is only .005 ms in their example
- sandfox 14y agoThat example is amongst the worst synthetic benchmarks I have seen in a while. Also it comes from someone who is associated with piwik. A PHP project that makes wordpress look tidy, well engineered and speedy. The more deeply nested the callstack is when you supress, the bigger the performance hit (slight generalisation and slightly from memory).
- ck2 14y agoI spent 10-15 minutes poking around php internals newslist for an explanation of the php 5.4 changelog "improved performance of the (@) silence operator" without luck. It's just listed as a zend engine improvement without specifications. Someone posted here a clear example of why (in earlier php5) it generates far worse opcode: http://derickrethans.nl/five-reasons-why-the-shutop-operator-should-be-avoided.html http://derickrethans.nl/five-reasons-why-the-shutop-operator...