14 Dec
2005
14 Dec
'05
6:35 a.m.
On 14 Dec 2005, at 04:53, Chris Johnson wrote:
So, in common.inc, we have a function called object2array() that loops through an object and makes it into an array. Is that faster than the equivalent function using a cast (array) operator? No. In fact, it's about 2.4 times slower. However, both are very fast for an object with 26 elements. Here's the benchmark:
Worth a patch?
Definitely! It's a lot faster and less code. Keeping looking for improvements Chris! -- Dries Buytaert :: http://www.buytaert.net/