projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e28679
)
Improve struct cache locality by bring commonly accessed fields close together.
author
Raymond Hettinger
<python@rcn.com>
Fri, 20 Feb 2015 08:50:04 +0000
(
00:50
-0800)
committer
Raymond Hettinger
<python@rcn.com>
Fri, 20 Feb 2015 08:50:04 +0000
(
00:50
-0800)
Modules/_randommodule.c
patch
|
blob
|
history
diff --git
a/Modules/_randommodule.c
b/Modules/_randommodule.c
index 4377ee0cf4d90ce78b1970636236599e0e0be1c3..af861820a2e520693b076be86a49aca496533df5 100644
(file)
--- 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;