mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-44826: Specialize STORE_ATTR (GH-27590)
* Generalize cache names for LOAD_ATTR to allow store and delete specializations. * Factor out specialization of attribute dictionary access. * Specialize STORE_ATTR.
This commit is contained in:
parent
b854557b49
commit
ac75f6bdd4
9 changed files with 345 additions and 93 deletions
|
@ -234,9 +234,7 @@ static PyObject* dict_iter(PyDictObject *dict);
|
|||
/*Global counter used to set ma_version_tag field of dictionary.
|
||||
* It is incremented each time that a dictionary is created and each
|
||||
* time that a dictionary is modified. */
|
||||
static uint64_t pydict_global_version = 0;
|
||||
|
||||
#define DICT_NEXT_VERSION() (++pydict_global_version)
|
||||
uint64_t _pydict_global_version = 0;
|
||||
|
||||
#include "clinic/dictobject.c.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue