Oren Tirosh wrote:
Problem: Python name lookup in dictionaries is relatively slow.
I tried this patch (*) by running the regression tests:
make && time ./python -E -tt Lib/test/regrtest.py
All the expected tests passed and there were no failures, this is good. The bad news is that it was slower. It took 42 user seconds longer with the patch than without.
real 3m1.031s user 1m19.480s sys 0m2.400s
real 3m38.071s user 1m51.760s sys 0m2.790s
The box is Linux 2.4, Athlon 650, 256 MB.
(*) Pretty sure this was patch #1, running sum yields: 53200 10. But it shouldn't matter, since it was only a name change, right?