summaryrefslogtreecommitdiffstats
path: root/Modules/_randommodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-02-20 08:50:04 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-02-20 08:50:04 (GMT)
commit7a4f43a8dd14c5eb64762a1ffcf1d44f069fc293 (patch)
treee0a715629f863c44a0be03de7a912affded4af12 /Modules/_randommodule.c
parent8e286794173376350dfdf7d99ac688b1827a38a3 (diff)
downloadcpython-7a4f43a8dd14c5eb64762a1ffcf1d44f069fc293.zip
cpython-7a4f43a8dd14c5eb64762a1ffcf1d44f069fc293.tar.gz
cpython-7a4f43a8dd14c5eb64762a1ffcf1d44f069fc293.tar.bz2
Improve struct cache locality by bring commonly accessed fields close together.
Diffstat (limited to 'Modules/_randommodule.c')
-rw-r--r--Modules/_randommodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index 4377ee0..af86182 100644
--- a/Modules/_randommodule.c
+++ b/Modules/_randommodule.c
@@ -78,8 +78,8 @@
typedef struct {
PyObject_HEAD
- unsigned long state[N];
int index;
+ unsigned long state[N];
} RandomObject;
static PyTypeObject Random_Type;