Populating a dictionary, fast [SOLVED SOLVED]

harri hpasanen at gmail.com
Tue Nov 20 16:02:17 CET 2007


On Nov 15, 9:51 pm, "Michael Bacarella" <m... at gpshopper.com> wrote:
>
> Since some people missed the EUREKA!, here's the executive summary:
>
>         Python2.3: about 45 minutes
>         Python2.4: about 45 minutes
>         Python2.5: about _30 seconds_


FYI, I tried on two 64 bit SMP machines (4 way and 2 way), running
Mandriva 2007 and 2008


2.6.17-6mdv #1 SMP Wed Oct 25 12:17:57 MDT 2006 x86_64 AMD Opteron(tm)
Processor 280 GNU/Linux
Python 2.4.3 (#2, May  7 2007, 15:15:17)
[GCC 4.1.1 20060724 (prerelease) (4.1.1-3mdk)] on linux2


2.6.23.1-1mdvsmp #1 SMP Sat Oct 20 18:04:52 EDT 2007 x86_64 Intel(R)
Core(TM)2 CPU          6400  @ 2.13GHz GNU/Linux
Python 2.5.1 (r251:54863, Sep 13 2007, 09:02:56)
[GCC 4.2.1 20070828 (prerelease) (4.2.1-6mdv2008.0)] on linux2


I could not reproduce the problem with Steven's test file id2name.txt
on either.
sendspace seems to be over capacity, so I haven't been able download
your
keys.txt.

I wonder if this might not be a glibc issue?
If you own built python 2.5 linked with the same glibc version as the
system python?

What does
ldd /usr/bin/python
say vs.
ldd /usr/local/bin/python

?

Harri






More information about the Python-list mailing list