Re: Size of Arrays

From: Date: Fri, 30 Jan 2004 14:07:20 +0000
Subject: Re: Size of Arrays
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-176341@lists.php.net to get a copy of this message
Gandolf wrote:
To the OP, why do you need to store all the items in memory at the same time? Can't you read some, process them then read the next lot, process them, read the next lot.... etc?
No I couldn't because we have to use 1,6 Mio values direktly. If we read them each for each it will take a lot of time.
Without testing I can't be sure, but my past experience suggests that working with several smaller sets of data one at a time would be more efficient than working with one big one if that's possible. I could of course be wrong since I don't know the internals of PHP too well, but I'd be surprised if I was. -- Stuart

« previous php.general (#176341) next »