From: Raymond Hettinger Date: Tue, 16 Jul 2013 09:34:19 +0000 (-0700) Subject: Backport c952f3d122ae: Tweak the deque struct by moving the least used fields X-Git-Tag: v2.7.6rc1~293 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b77ed2c54b4a856a9138b6348967b6bbc9026c60;p=thirdparty%2FPython%2Fcpython.git Backport c952f3d122ae: Tweak the deque struct by moving the least used fields (maxlen and weakref) to the end. --- diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index b0fa23dfa187..dc31cbc9b0e7 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -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;