[issue45213] Frozen modules are looked up using a linear search.
Steve Dower
report at bugs.python.org
Thu Sep 23 12:21:43 EDT 2021
Steve Dower <steve.dower at python.org> added the comment:
Could we add a compile-time requirement (most likely checked in tests, rather than at build) that _PyImport_FrozenModules be sorted? Then we can at least bail out of the loop early, and one day someone could make it a binary search.
----------
nosy: +steve.dower
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45213>
_______________________________________
More information about the Python-bugs-list
mailing list