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

searching a large file

Thread Next
From:
Hans Holtan
Date:
February 28, 2002 09:13
Subject:
searching a large file
Message ID:
p05101001b8a41486d8ed@[199.133.139.166]
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.
Thanks,
Hans
-- 



________________________________________________

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
hehe@nature.berkeley.edu
_________________________________________________

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About