Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: storing a huge text file into a hash

by sundialsvc4 (Abbot)
on Dec 07, 2010 at 21:55 UTC ( [id://875897]=note: print w/replies, xml ) Need Help??


in reply to storing a huge text file into a hash

Another clever-trick is a tied hash.   This looks like a hash but it is backed by some other storage mechanism, such as Berkeley-DB.

But, lately, I think that this has paled in favor of SQLite (http://www.sqlite.org) ... a public domain(!) flat-file database that works extremely well.   You could prepare an SQL query ahead of time, then execute it repeatedly to retrieve “the ’droid you’re looking for.”   It is blazingly fast.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-20 14:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found