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 steve.dower
Recipients steve.dower
Date 2021-07-07.20:06:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625688399.61.0.349492251781.issue44582@roundup.psfhosted.org>
In-reply-to
Content
mimetypes.init is slow on Windows because of the big registry search, which involves touching thousands of entries in order to add a few hundred into the initial table.

Things get even worse when audit hooks are enabled, because the winreg methods need to be hooked. However, we know that this particular operation is coming from core, and so we could skip these hooks.

Both issues can be trivially solved (helped) with a native accelerator function.
History
Date User Action Args
2021-07-07 20:06:39steve.dowersetrecipients: + steve.dower
2021-07-07 20:06:39steve.dowersetmessageid: <1625688399.61.0.349492251781.issue44582@roundup.psfhosted.org>
2021-07-07 20:06:39steve.dowerlinkissue44582 messages
2021-07-07 20:06:39steve.dowercreate