[issue5186] Reduce hash collisions for objects with no __hash__ method

Antoine Pitrou report at bugs.python.org
Wed Feb 11 23:53:51 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

Here is an updated benchmark script, for both object() and an
user-defined class, and adding dict lookup, set lookup and set difference.
Set difference is massively faster: up to 60% faster.

Added file: http://bugs.python.org/file13039/time_object_hash.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5186>
_______________________________________


More information about the Python-bugs-list mailing list