Posted by Colin McKinnon on 10/08/05 16:54
Robert Erstwhile wrote:
> Does anyone know if there is any way to improve php array performance?
>
> I am currently developing an application which uses very large
> multidimensional arrays, with many multiple dimensions. I am rapidly
> discovering that php seems to be quite weak in this area.
>
I found the same thing with an array of approx 10000 elements it turned out
to be several times faster to store the data in MySQL & generate dynamic
queries on a remote machine than to deserialize an array from the local
filesystem and search it. Although in my case I was only looking for a few
elements from the array and it was easy to describe as an SQL query.
C.
[Back to original message]
|