[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Out Of Memory processing text file?



At 19.20 -0700 2000.06.29, Andy Berkvam wrote:
>  I'm running into an odd problem processing a text file.  My script works
>fine on smaller files.  But when I try to process the whole 28.8MB text
>file at once, it does fine for a while (roughly halfway through, somewhere
>in New York) and then I get the message "Out of memory!".
>
>  I know what you're thinking (if you're familiar with MacPerl).  But it's
>not line endings.  The text files are in Mac format (confirmed by BBEdit
>and DragStrip).  Just for fun I put the line:
>
>$/ = "\012";
>
>at the top of my script.  When I had that line, it ran out of memory
>without ANY output (as I would expect).
>
>  I managed to get the script down to a fairly small stub that exhibits
>the problem.  I am including it below.

How much RAM do you have allocated to MacPerl?  I have more than most (30
MB), but I dropped MacPerl down to 3840K (the recommend amount with VM on)
and it worked just fine, with those same files you have.

-- 
Chris Nandor       |     pudge@pobox.com      |     http://pudge.net/
Andover.Net        | chris.nandor@andover.net | http://slashcode.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org