I have a huge amount of PHP objects for a neural network which I have to iterate over and perform some maths on. Could I get better iteration performance (speed/memory) using associative arrays ($object['value']) than using class instances ($object->value)?

I am dealing with around 3,640 objects and iterating over them around 500 times (at best), so any micro-optimization helps a great deal. I don't want to trade in my beautiful classes for dirty arrays unless they are actually more performant.

Edit
Report