mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #23119: Simplify setobject by inlining the special case for unicode equality testing.
This commit is contained in:
parent
bbd3aa8ece
commit
93035c44fd
3 changed files with 13 additions and 73 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue