Sorted and reversed on huge dict ?

vd12005 at vd12005 at
Fri Nov 3 22:42:33 CET 2006

thanks for your replies :)

so i just have tried, even if i think it will not go to the end => i
was wrong : it is around 1.400.000 entries by dict...

but maybe if keys of dicts are not duplicated in memory it can be done
(as all dicts will have the same keys, with different (count) values)?

memory is 4Gb of ram, is there a good way to know how much ram is used
directly from python  (or should i rely on 'top' and other unix
command? by now around 220mb is used for around 200.000 words handled
in 15 dicts)

More information about the Python-list mailing list