[issue23712] Experiment: Assume that exact unicode hashes are perfect discriminators
Serhiy Storchaka
report at bugs.python.org
Wed Mar 25 14:22:15 CET 2015
Serhiy Storchaka added the comment:
In case of class or module dicts attribute names usually are interned. So no string comparison is needed if the key is found. It is needed only when the key is not found, but found a key with the same hash (with the chance 5e-28). The benefit of optimization is 5e-28 * time of string comparison per key lookup.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23712>
_______________________________________
More information about the Python-bugs-list
mailing list