Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Windows 7 Remove Tabs Out of Memory

by bulk88 (Priest)
on Jul 31, 2012 at 19:14 UTC ( #984649=note: print w/ replies, xml ) Need Help??


in reply to Windows 7 Remove Tabs Out of Memory

You put a 500 MB file RAM. The regexp is going to be some multiple of the file size. Maybe there is some way to stop the regexp from "backtracking" to lower the peak of ram required for the regexp engine. This is the more complicated fix.

The other choice is process the file by fixed blocks (512 KB or so) or with line buffered IO ("<FILE>") in a loop.

Choice 3 is to try tr operator which is NOT a regexp.


Comment on Re: Windows 7 Remove Tabs Out of Memory

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-09-22 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (203 votes), past polls