[issue30416] constant folding opens compiler to quadratic time hashing
Serhiy Storchaka
report at bugs.python.org
Sat May 20 17:35:23 EDT 2017
Serhiy Storchaka added the comment:
Nice example.
The only fix I see is caching the hash in a tuple. This can even help in more cases, when tuples are used as dict keys. But this affect too much code, and can even break a code that mutates a tuple with refcount 1.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30416>
_______________________________________
More information about the Python-bugs-list
mailing list