diff options
| author | Raymond Hettinger <python@rcn.com> | 2013-07-13 22:30:25 -0700 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2013-07-13 22:30:25 -0700 |
| commit | 90dea4ce43a0ebfe9961e854b605d167e0f57863 (patch) | |
| tree | 2431b9d746e94301f49f749f1a82cbf22799e8fd /Modules/_collectionsmodule.c | |
| parent | 840533bf1c7e5cb9b565067795df28a41b61844e (diff) | |
| download | cpython-git-90dea4ce43a0ebfe9961e854b605d167e0f57863.tar.gz | |
Tweak the deque struct by moving the least used fields (maxlen and weakref) to the end.
Diffstat (limited to 'Modules/_collectionsmodule.c')
| -rw-r--r-- | Modules/_collectionsmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 21cc21dac9..5d5fc912a1 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; |
