Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Searching text files

by Dervish (Friar)
on Sep 18, 2006 at 03:58 UTC ( [id://573472]=note: print w/replies, xml ) Need Help??


in reply to Searching text files

Just as a comment, your tests seem to show that reading your entire database (or at least the entire database for a particular area code) takes a fixed amount of time -- 30 seconds or so. So your goal would be to reduce the total amount of reading time, either by sorting the database files and doing a binary search, or saving that effort and using some kind of database to do the same thing for you. In either case, the goal is to reduce the total number of bytes checked for a failed search.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found