STINNER Victor added the comment: > Python 2.7 is closed for adding new features. Python 3.4+ uses different code > for calculating hashes.
The code doesn't modify the hash function. It's a common loop unroll optimization technique. Since the optimization can be seen on real world benchmark, I think that it's worth to take this optimization. ---------- nosy: +haypo type: enhancement -> performance _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25106> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com