Eric Snow <[email protected]> added the comment:
On Wed, Sep 22, 2021 at 7:12 AM Dong-hee Na <[email protected]> wrote: > I thought about the Trie implementation for this case. On Wed, Sep 22, 2021 at 7:22 AM Marc-Andre Lemburg <[email protected]> wrote: > Perhaps a frozen dict could be used instead of the linear search. > > This could then also be made available as sys.frozen_modules for inspection > by applications and tools such as debuggers or introspection tools trying to > find source code (and potentially failing at this). Both are worth exploring later. FWIW, I was also considering _Py_hashtable_t (from Include/internal/pycore_hashtable.h). ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue45213> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
