Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Searching text files

by Dervish (Friar)
on Sep 18, 2006 at 03:58 UTC ( #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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2023-11-28 16:06 GMT
Find Nodes?
    Voting Booth?

    No recent polls found