diff options
author | Raymond Hettinger <python@rcn.com> | 2013-08-19 14:36:04 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-08-19 14:36:04 (GMT) |
commit | 3c0a4f5def782dfca3f1a1ce4a739efa12faa1b0 (patch) | |
tree | 9a3d7945455afd37e5f8b68769763dfad8e9f32e /Include | |
parent | 319f3a10f907bf08d1698a073ca4664d366a0b2c (diff) | |
download | cpython-3c0a4f5def782dfca3f1a1ce4a739efa12faa1b0.zip cpython-3c0a4f5def782dfca3f1a1ce4a739efa12faa1b0.tar.gz cpython-3c0a4f5def782dfca3f1a1ce4a739efa12faa1b0.tar.bz2 |
Issue18771: Reduce the cost of hash collisions for set objects.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/setobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/setobject.h b/Include/setobject.h index 31f2123..cbb21a1 100644 --- a/Include/setobject.h +++ b/Include/setobject.h @@ -51,9 +51,9 @@ struct _setobject { */ setentry *table; setentry *(*lookup)(PySetObject *so, PyObject *key, Py_hash_t hash); + Py_hash_t hash; /* only used by frozenset objects */ setentry smalltable[PySet_MINSIZE]; - Py_hash_t hash; /* only used by frozenset objects */ PyObject *weakreflist; /* List of weak references */ }; #endif /* Py_LIMITED_API */ |