From b77ed2c54b4a856a9138b6348967b6bbc9026c60 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 16 Jul 2013 02:34:19 -0700 Subject: Backport c952f3d122ae: Tweak the deque struct by moving the least used fields (maxlen and weakref) to the end. --- Modules/_collectionsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index b0fa23d..dc31cbc 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; -- cgit v0.12