[development] Note that PHP arrays are fast

Karoly Negyesi karoly at negyesi.net
Wed Apr 11 01:55:56 UTC 2007

> * modulo is slower than bitwise-and and I think that this was the main culprit to the even/odd flip performance

But the patch was a bugfix and the race was between 

    $class = $class == 'even' ? 'odd' : 'even'

    $class = $flip[$class];

Because the key is not reliable, so we must flip the class.

> * microtimer is not a benchmarking tool

I know that the microtime is not accurate but -- what else if you need subsecond? Even the most ancient PCs had a 1/18.2 second timer, I am not intimate on newer designs.



More information about the development mailing list