Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Taming a memory hog

by podian (Scribe)
on Nov 11, 2003 at 19:25 UTC ( [id://306327]=note: print w/replies, xml ) Need Help??


in reply to Taming a memory hog

If the output record can be produced by reading one line of input, I am wondering why you decided to read the whole file into memory?

This remind me of something. At work, when I inspected some C code I noticed that the person is closing
and re-opening the file on every write. When I asked him why, he said "when I ran the program, it did not write
anything to the output file for few minutes and when I closed and opened it, I was able to see the output right away!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-23 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found