diff options
author | Raymond Hettinger <python@rcn.com> | 2015-01-26 00:12:49 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-01-26 00:12:49 (GMT) |
commit | 93035c44fd49359e47947fa23aded502d3a4155e (patch) | |
tree | 0379a5afd7ba7ca33e719632261bf05dfd5b385f /Include | |
parent | bbd3aa8ece3ed4caf98158086c4599248eb9cddf (diff) | |
download | cpython-93035c44fd49359e47947fa23aded502d3a4155e.zip cpython-93035c44fd49359e47947fa23aded502d3a4155e.tar.gz cpython-93035c44fd49359e47947fa23aded502d3a4155e.tar.bz2 |
Issue #23119: Simplify setobject by inlining the special case for unicode equality testing.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/setobject.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/setobject.h b/Include/setobject.h index 79124d0..a8b8d33 100644 --- a/Include/setobject.h +++ b/Include/setobject.h @@ -35,7 +35,7 @@ Invariants for frozensets: */ -typedef struct _setobject { +typedef struct { PyObject_HEAD Py_ssize_t fill; /* Number active and dummy entries*/ @@ -53,7 +53,6 @@ typedef struct _setobject { * runtime null-tests. */ setentry *table; - setentry *(*lookup)(struct _setobject *so, PyObject *key, Py_hash_t hash); Py_hash_t hash; /* Only used by frozenset objects */ setentry smalltable[PySet_MINSIZE]; |