This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vdupras
Recipients benjamin.peterson, loewis, vdupras
Date 2008-02-20.16:36:38
SpamBayes Score 0.08122073
Marked as misclassified No
Message-id <1203525400.91.0.993498511759.issue2144@psf.upfronthosting.co.za>
In-reply-to
Content
The performance gain is rather good:

hsoft-dev:python hsoft$ ./python.exe -m "timeit" -s "import os" 
"os.environ['HOME']"
1000000 loops, best of 3: 1.16 usec per loop
hsoft-dev:python hsoft$ patch -p0 < environ-modern.diff 
patching file Lib/os.py
hsoft-dev:python hsoft$ ./python.exe -m "timeit" -s "import os" 
"os.environ['HOME']"
1000000 loops, best of 3: 0.428 usec per loop

The regression tests still pass, and modernization of the code is a nice 
thing.

+1
History
Date User Action Args
2008-02-20 16:36:41vduprassetspambayes_score: 0.0812207 -> 0.08122073
recipients: + vdupras, loewis, benjamin.peterson
2008-02-20 16:36:40vduprassetspambayes_score: 0.0812207 -> 0.0812207
messageid: <1203525400.91.0.993498511759.issue2144@psf.upfronthosting.co.za>
2008-02-20 16:36:39vdupraslinkissue2144 messages
2008-02-20 16:36:38vduprascreate