[development] performance foo
Dries Buytaert
dries at buytaert.net
Wed Dec 14 05:35:20 UTC 2005
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/
More information about the development
mailing list