From: Raymond Hettinger Date: Fri, 20 Feb 2015 08:50:04 +0000 (-0800) Subject: Improve struct cache locality by bring commonly accessed fields close together. X-Git-Tag: v3.5.0a2~115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a4f43a8dd14c5eb64762a1ffcf1d44f069fc293;p=thirdparty%2FPython%2Fcpython.git Improve struct cache locality by bring commonly accessed fields close together. --- diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index 4377ee0cf4d9..af861820a2e5 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;