summaryrefslogtreecommitdiffstats
path: root/Include/setobject.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-08-19 14:36:04 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-08-19 14:36:04 (GMT)
commit3c0a4f5def782dfca3f1a1ce4a739efa12faa1b0 (patch)
tree9a3d7945455afd37e5f8b68769763dfad8e9f32e /Include/setobject.h
parent319f3a10f907bf08d1698a073ca4664d366a0b2c (diff)
downloadcpython-3c0a4f5def782dfca3f1a1ce4a739efa12faa1b0.zip
cpython-3c0a4f5def782dfca3f1a1ce4a739efa12faa1b0.tar.gz
cpython-3c0a4f5def782dfca3f1a1ce4a739efa12faa1b0.tar.bz2
Issue18771: Reduce the cost of hash collisions for set objects.
Diffstat (limited to 'Include/setobject.h')
-rw-r--r--Include/setobject.h2
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 */