Read and Analyze Giant Files
Yennie at aol.com
Yennie at aol.com
Fri Nov 8 00:33:01 EST 2002
Problem here most likely is that you are trying to read the entire 300MB file
into memory at once. Unless you have an extra 300MB block of RAM floating
around, this will start beating on virtual memory pretty hard (and
increasingly slow).
You'll notice that your non-MetaCard script reads one line at a time- I would
suggest doing the same.
If you are just looking for occurences of a single string, you could also try
using the grep command-line tool. Type "man grep" into the Terminal for
syntax.
HTH,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.runrev.com/pipermail/metacard/attachments/20021108/f54b8203/attachment.htm
More information about the metacard
mailing list