Improve struct cache locality by bring commonly accessed fields close together.

This commit is contained in:
Raymond Hettinger 2015-02-20 00:50:04 -08:00
parent 8e28679417
commit 7a4f43a8dd
1 changed files with 1 additions and 1 deletions

View File

@ -78,8 +78,8 @@
typedef struct {
PyObject_HEAD
unsigned long state[N];
int index;
unsigned long state[N];
} RandomObject;
static PyTypeObject Random_Type;