Message402447
| Author |
eric.snow |
| Recipients |
barry, brett.cannon, corona10, eric.snow, lemburg, rhettinger |
| Date |
2021年09月22日.15:43:36 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CALFfu7BJGxMJbjHd0d8mdNqES+zBgA9AEEsoemX_=CELjD5qtw@mail.gmail.com> |
| In-reply-to |
<1632316923.96.0.611376150182.issue45213@roundup.psfhosted.org> |
| Content |
On Wed, Sep 22, 2021 at 7:12 AM Dong-hee Na <report@bugs.python.org> wrote:
> I thought about the Trie implementation for this case.
On Wed, Sep 22, 2021 at 7:22 AM Marc-Andre Lemburg
<report@bugs.python.org> 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). |
|