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.

classification
Title: 'os' patch to speed up import (and python startup)
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: nbastin
Priority: normal Keywords: patch

Created on 2004-03-25 16:36 by nbastin, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
os.patch nbastin, 2004-03-25 16:36
Messages (1)
msg45670 - (view) Author: Nick Bastin (nbastin) * (Python committer) Date: 2004-03-25 16:36
This patch changes the _Environ subclass of UserDict to use dict 
instead, which avoids the import of UserDict, save 6-8ms on 
python startup with site.py (~4% improvement).

I tested this on my MacOS X box, but since this code is really only 
used in Win32, someone should test it there.
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40080
2004-03-25 16:36:47nbastincreate