Commit b77ed2c5 authored by Raymond Hettinger's avatar Raymond Hettinger

Backport c952f3d122ae: Tweak the deque struct by moving the least used fields

(maxlen and weakref) to the end.
parent 90180c1c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment