Issue #23119: Simplify setobject by inlining the special case for unicode equality testing.

This commit is contained in:
Raymond Hettinger 2015-01-25 16:12:49 -08:00
parent bbd3aa8ece
commit 93035c44fd
3 changed files with 13 additions and 73 deletions

View file

@ -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];