[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: request for Details about Dictionaries in Python

Matt Nordhoff

3/14/2008 5:06:00 PM

Michael Wieher wrote:
> I'm not sure if a well-written file/seek/read algorithm is faster than a
> relational database...
> sure a database can store relations and triggers and all that, but if
> he's just doing a lookup for static data, then I'm thinking disk IO is
> faster for him? not sure

I would think that rolling your own solution would get complicated
enough that it would be easier to just use SQLite or something. If you
wanted to go to the effort, you could probably get something faster, but
if SQLite is fast enough, who cares?

Hmm, if Perl's on-disk hash tables are good, maybe someone should port
them to Python, or maybe someone already has.

Also, for translations, maybe there's a good library already available.
--
1 Answer

Marc 'BlackJack' Rintsch

3/15/2008 6:17:00 AM

0

On Fri, 14 Mar 2008 17:06:00 +0000, Matt Nordhoff wrote:

> Hmm, if Perl's on-disk hash tables are good, maybe someone should port
> them to Python, or maybe someone already has.

I don't know Perl's on-disk hash tables but there is a `shelve` module in
the standard library.

Ciao,
Marc 'BlackJack' Rintsch