Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Out of Memory

by Anonymous Monk
on Mar 28, 2013 at 16:04 UTC ( #1025993=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Out of Memory
in thread Out of Memory

5 million nulls, even if it was double byte should take up less than 10 mb of memory no? If array overhead was double that, we're still at 20 mb of memory per copy?

What is it about the workings of this second statement that causes it to consume so much memory?

I'd like to understand how that works if anyone happens to know.


Comment on Re^3: Out of Memory
Re^4: Out of Memory
by Anonymous Monk on Mar 28, 2013 at 17:27 UTC
    ($nulls) = $_ = /\0/g;

    Distilling it down a little more, this also causes the out of memory error.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025993]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-12-27 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls