[issue44582] Accelerate mimetypes.init on Windows

Steve Dower report at bugs.python.org
Wed Jul 7 16:43:16 EDT 2021


Steve Dower <steve.dower at python.org> added the comment:

mimetypes doesn't _really_ support clearing, but `python.exe -m timeit "import mimetypes as M; M.types_map.clear(); M.init()"` is pretty close.

Without the accelerator: 133ms
With the accelerator: 27.8ms

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44582>
_______________________________________


More information about the Python-bugs-list mailing list