develooper Front page | perl.beginners | Postings from February 2002

searching a large file

Thread Next
Hans Holtan
February 28, 2002 09:13
searching a large file
Message ID:
I am having a problem searching a large (600 mb) text file. What I 
need to do is find a match with a short bit of text and then look up 
to 200 characters forwards and backwards for other matches to 
different short bits of text. I tried reading the file to memory 
first and then doing the search, but it's a serious hog, and I need 
to leave a lot of memory open for other operations. Does anyone have 
suggestions on how I can do this while limiting memory usage, speed 
is a factor but not paramount.


Hans E. E. Holtan
Graduate Student
UC Berkeley-Department of Plant and Microbial Biology
Plant Gene Expression Center
800 Buchanan Street
Albany, California 94710
U. S. A.
Phone: (510) 559-5922
FAX: (510) 559-6089

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About