summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-07-14 05:30:25 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-07-14 05:30:25 (GMT)
commit90dea4ce43a0ebfe9961e854b605d167e0f57863 (patch)
tree2431b9d746e94301f49f749f1a82cbf22799e8fd /Modules
parent840533bf1c7e5cb9b565067795df28a41b61844e (diff)
downloadcpython-90dea4ce43a0ebfe9961e854b605d167e0f57863.zip
cpython-90dea4ce43a0ebfe9961e854b605d167e0f57863.tar.gz
cpython-90dea4ce43a0ebfe9961e854b605d167e0f57863.tar.bz2
Tweak the deque struct by moving the least used fields (maxlen and weakref) to the end.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_collectionsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
index 21cc21d..5d5fc91 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -119,8 +119,8 @@ typedef struct {
block *rightblock;
Py_ssize_t leftindex; /* in range(BLOCKLEN) */
Py_ssize_t rightindex; /* in range(BLOCKLEN) */
+ long state; /* incremented whenever the indices move */
Py_ssize_t maxlen;
- long state; /* incremented whenever the indices move */
PyObject *weakreflist; /* List of weak references */
} dequeobject;