Populating a dictionary, fast

Istvan Albert istvan.albert at gmail.com
Sun Nov 11 11:11:09 EST 2007


On Nov 10, 4:56 pm, Michael Bacarella <m... at gpshopper.com> wrote:

> This would seem to implicate the line id2name[id] = name as being excruciatingly slow.

As others have pointed out there is no way that this takes 45
minutes.Must be something with your system or setup.

A functionally equivalent code for me runs in about 49 seconds!
(it ends up using about twice as much ram as the data on disk)

i.







More information about the Python-list mailing list