Is 100,000 entries big for a dictionary?

Peder Jakobsen jakobsen at home.com
Fri Dec 29 23:54:48 EST 2000


Now try

print megadict

and see how long that takes ;)

"Gilles Lenfant" <glenfant at equod.com.nospam> wrote in message
news:92j54s$t0i$1 at reader1.imaginet.fr...
> Not for my desktop Sun 4500 with 16 Gb RAM 8))
> For your machine:
>
> megadict = {}
> for x in xrange(0, 100000):
>   megadict[str(x)] = 'depends on the stuff you put in the dict'
>
> So what's the result ?
>
> <rturpin at my-deja.com> a écrit dans le message news:
> 92iug4$vqb$1 at nnrp1.deja.com...
> > I'm in the process of architecting an application with medium sized data
> > sets. Python dictionaries are tempting as part of the representation
> > mechanism. How do they perform when they have 100,000 entries? Can you
> > offer any other experience with this size data set in Python?
> >
> >
> > Sent via Deja.com
> > http://www.deja.com/
>





More information about the Python-list mailing list