cpython: Move the set search finger before the smalltable.
https://hg.python.org/cpython/rev/b5c95ff0f9a4 changeset: 94395:b5c95ff0f9a4 parent: 94365:fee78636a3b1 user: Raymond Hettinger <python@rcn.com> date: Thu Jan 29 22:00:32 2015 -0800 summary: Move the set search finger before the smalltable. files: Include/setobject.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/setobject.h b/Include/setobject.h --- a/Include/setobject.h +++ b/Include/setobject.h @@ -57,9 +57,9 @@ */ setentry *table; Py_hash_t hash; /* Only used by frozenset objects */ + Py_ssize_t finger; /* Search finger for pop() */ + setentry smalltable[PySet_MINSIZE]; - - Py_ssize_t finger; /* Search finger for pop() */ PyObject *weakreflist; /* List of weak references */ } PySetObject; -- Repository URL: https://hg.python.org/cpython
participants (1)
-
raymond.hettinger