Skip to content

Commit e872f7a

Browse files
Optimize FOR_ITER_DICT_ITEM in the JIT
1 parent 46a0e5a commit e872f7a

10 files changed

Lines changed: 1099 additions & 944 deletions

File tree

Include/internal/pycore_dict.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ PyDictObject *_PyObject_MaterializeManagedDict_LockHeld(PyObject *);
346346

347347
PyAPI_FUNC(PyObject *) _PyDictIter_IterNextItem(PyObject *self);
348348

349+
PyAPI_FUNC(int) _PyDictIter_IterNextItemPair(PyObject *self, PyObject **key, PyObject **value);
350+
349351
typedef struct {
350352
PyObject_HEAD
351353
PyDictObject *di_dict; /* Set to NULL when iterator is exhausted */

0 commit comments

Comments
 (0)