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

(maxlen and weakref) to the end.
This commit is contained in:
Raymond Hettinger 2013-07-16 02:34:19 -07:00
parent 90180c1c3f
commit b77ed2c54b
1 changed files with 1 additions and 1 deletions

View File

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