Is 100,000 entries big for a dictionary?

Gilles Lenfant glenfant at
Sat Dec 30 00:06:26 CET 2000

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> a écrit dans le message news:
92iug4$vqb$1 at
> 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

More information about the Python-list mailing list