From b9fcfa60244da85d8847a05e8d5e75d0a6694f90 Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sun, 21 May 2023 21:08:28 +0900 Subject: gh-104717: Add comment about manual loop unrolling (gh-104718) --- Objects/dictobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 7436c11..254cd9a 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -944,6 +944,7 @@ unicodekeys_lookup_unicode(PyDictKeysObject* dk, PyObject *key, Py_hash_t hash) } perturb >>= PERTURB_SHIFT; i = mask & (i*5 + perturb + 1); + // Manual loop unrolling ix = dictkeys_get_index(dk, i); if (ix >= 0) { PyDictUnicodeEntry *ep = &ep0[ix]; -- cgit v0.12