From 93035c44fd49359e47947fa23aded502d3a4155e Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 25 Jan 2015 16:12:49 -0800 Subject: Issue #23119: Simplify setobject by inlining the special case for unicode equality testing. --- Include/setobject.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Include/setobject.h') diff --git a/Include/setobject.h b/Include/setobject.h index 79124d0f6e..a8b8d33ebb 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]; -- cgit v1.2.1