Populating a dictionary, fast [SOLVED SOLVED]

Aaron Watters aaron.watters at gmail.com
Thu Nov 15 17:40:12 CET 2007

On Nov 14, 6:26 pm, Steven D'Aprano <st... at REMOVE-THIS-
cybersource.com.au> wrote:

> On systems with multiple CPUs or 64-bit systems, or both, creating and/or
> deleting a multi-megabyte dictionary in recent versions of Python (2.3,
> 2.4, 2.5 at least) takes a LONG time, of the order of 30+ minutes,
> compared to seconds if the system only has a single CPU. Turning garbage
> collection off doesn't help.

Fwiw, Testing on a 2 cpu 64 bit machine with 1gb real memory I
run out of real memory before I see this effect, so I guess it kicks
in for dicts
that consume beyond that.    That's better than I feared at any

   -- Aaron Watters


More information about the Python-list mailing list