Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Out of Memory

by vkon (Curate)
on May 05, 2011 at 08:28 UTC ( [id://903091]=note: print w/replies, xml ) Need Help??


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

I agree.

Let me share my experience on a problem that OP raised.
Usually at work, when I need some transformation, I often write small and quick program that slurps entire file and uses regexp to produce a result.
this works and I use such a program from time to time.
then, this program fed with a file of ten or hundred Mbytes (which is no more rare nowadays) and I go to my initial program and optimize it so it could rpocess such files.

Actually - I think - it is quite common situation.

There's no need to write a very optimal and highly structured program from the very beginning - "dirty hack" suffice as a first step, and then incremental improvements could be made, if needed - the point - they could never be needed :)
Fortunately, perl is powerful enough to allow such an approach.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-03-29 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found