Raymond Hettinger <raymond.hettinger at gmail.com> added the comment: It really depends on whether the key hashes are cheap or not. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue40889> _______________________________________