Backport c952f3d122ae: Tweak the deque struct by moving the least used fields
(maxlen and weakref) to the end.
This commit is contained in:
parent
90180c1c3f
commit
b77ed2c54b
|
@ -99,8 +99,8 @@ typedef struct {
|
|||
Py_ssize_t leftindex; /* in range(BLOCKLEN) */
|
||||
Py_ssize_t rightindex; /* in range(BLOCKLEN) */
|
||||
Py_ssize_t len;
|
||||
Py_ssize_t maxlen;
|
||||
long state; /* incremented whenever the indices move */
|
||||
Py_ssize_t maxlen;
|
||||
PyObject *weakreflist; /* List of weak references */
|
||||
} dequeobject;
|
||||
|
||||
|
|
Loading…
Reference in New Issue