From 7a4f43a8dd14c5eb64762a1ffcf1d44f069fc293 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 20 Feb 2015 00:50:04 -0800 Subject: [PATCH] Improve struct cache locality by bring commonly accessed fields close together. --- Modules/_randommodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 4377ee0cf4d..af861820a2e 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;