FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Exhaustive memory allocation using arrays
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Exhaustive memory allocation using arrays [message #181746 is a reply to message #181744] Wed, 29 May 2013 07:45 Go to previous messageGo to previous message
tombert.at is currently offline  tombert.at
Messages: 3
Registered: May 2013
Karma:
Junior Member
And, doubling the memory size by assigning a new value:

for ($i=0; $i < 1000000; $i++) {
$value[$i] = "23.4567890123";
}
for ($i=0; $i < 1000000; $i++) {
$value[$i] = sprintf("%f", $value[$i]);
}

Now php is using ~400 MB
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Parsing mbox files with Windows Php
Next Topic: UML
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 15:22:43 GMT 2024

Total time taken to generate the page: 0.05738 seconds