Hi at all,

> Indeed. The following script had my machine happily swapping like crazy
> at 320,000 array items (each being 1k, task manager showed 640meg total
> memory in use on this development machine with 512meg RAM running WinXP).
>
> <?php
>      while (@ob_end_flush());
>      $data = Array();
>      while (true)
>      {
>          $data[] = str_repeat('#', 1024);
>          print count($data)."\n";
>      }
> ?>
>
> 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.

We discover we can use an Array with 2.000.000 Values - if higher the server
(Intel 1 GHz, 32 Bit, 1 GB RAM) gives up.

Ciao,

Sandro

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to