cpython: 0ba4bcc0a7a6 (original) (raw)

Mercurial > cpython

changeset 94696:0ba4bcc0a7a6

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

Raymond Hettinger python@rcn.com
date Fri, 20 Feb 2015 00:50:04 -0800
parents 95533c9edaaf
children da4eeba6ba20
files Modules/_randommodule.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Modules/_randommodule.c 2

line wrap: on

line diff

--- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -78,8 +78,8 @@ typedef struct { PyObject_HEAD

} RandomObject; static PyTypeObject Random_Type;