commit | 7a4f43a8dd14c5eb64762a1ffcf1d44f069fc293 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri Feb 20 00:50:04 2015 -0800 |
committer | Raymond Hettinger <python@rcn.com> | Fri Feb 20 00:50:04 2015 -0800 |
tree | e0a715629f863c44a0be03de7a912affded4af12 | |
parent | 8e286794173376350dfdf7d99ac688b1827a38a3 [diff] [blame] |
Improve struct cache locality by bring commonly accessed fields close together.
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;