[issue45213] Frozen modules are looked up using a linear search.

Eric Snow report at bugs.python.org
Wed Sep 15 13:44:16 EDT 2021


Eric Snow <ericsnowcurrently at gmail.com> added the comment:

Realistically, I doubt this will ever be a problem.  The list of frozen modules is fairly small and the loop in the C code is a lightweight.  So it isn't that big of a deal relative to the other costs involved in import.  Even if the number of frozen modules grows dramatically, it's unlikely to be a problem.

So we should probably close this.  Mostly I opened this so folks with the same observations could find it.  I'll close the issue in a few days in case I missed something.

----------
status: open -> pending

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


More information about the Python-bugs-list mailing list