Colin Guthrie-6 wrote:
> 
> Having done some basic benchmarks, on this thread:
> http://thread.gmane.org/gmane.comp.php.general/190070
> the second example above gave me a ~3.5x speed increase. If there is a 
> 2-depth array that needs checking then it yielded a ~4.5x speed increase.
> 
> This would seem like a fairly easy "low hanging fruit" optimisation that 
> could be made in the ZF with minimum of hassle.
> 
> Col
> 

That's all good but if calls to array_key_exists() amount to ~0% of total
request time then 4x ~0% is still ~0%. In the meantime you can shed as much
as 10%, 20%... by removing actual bottlenecks. Optimisation without
profiling is just a waste of time and even if changes are easy to make, risk
of introducing bugs may not be worth it.

Karol
-- 
View this message in context: 
http://www.nabble.com/Zend-Framework-1.7-Preview-Release-is-now-available%21-tp19966314p19991255.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to