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 garth42
Recipients
Date 2004-06-22.15:22:11
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This patch removes the RegQueryInfoKey call and
replaces it with a call to EnumKeyEx. This greatly
speeds up this call. 

The script below times 

python 2.3              5531 89.7130000591
python 2.4 +patch   5531 0.0469999313354

start = time.time()
i = 0
try:
  while 1:
    _winreg.EnumKey(_winreg.HKEY_CLASSES_ROOT, i)
    i += 1
except WindowsError:
  pass
print i, time.time() - start
History
Date User Action Args
2007-08-23 15:38:13adminlinkissue977553 messages
2007-08-23 15:38:13admincreate