[issue44160] speed up searching for keywords by using a dictionary
Serhiy Storchaka
report at bugs.python.org
Tue May 18 02:17:23 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
Please repeat benchmarking for interned names:
kwargs = {sys.intern("a"*i): None for i in range(1, N+1)}
and for more distinctive names:
kwargs = {sys.intern(f"a{i}"): None for i in range(1, N+1)}
I guess the difference will be lesser.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44160>
_______________________________________
More information about the Python-bugs-list
mailing list