[Python-checkins] cpython (2.7): Backport c952f3d122ae: Tweak the deque struct by moving the least used fields
raymond.hettinger
python-checkins at python.org
Tue Jul 16 11:34:28 CEST 2013
http://hg.python.org/cpython/rev/d635e94948a6
changeset: 84659:d635e94948a6
branch: 2.7
user: Raymond Hettinger <python at rcn.com>
date: Tue Jul 16 02:34:19 2013 -0700
summary:
Backport c952f3d122ae: Tweak the deque struct by moving the least used fields
(maxlen and weakref) to the end.
files:
Modules/_collectionsmodule.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -99,8 +99,8 @@
Py_ssize_t leftindex; /* in range(BLOCKLEN) */
Py_ssize_t rightindex; /* in range(BLOCKLEN) */
Py_ssize_t len;
+ 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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list