From: Dong-hee Na Date: Sun, 21 May 2023 12:08:28 +0000 (+0900) Subject: gh-104717: Add comment about manual loop unrolling (gh-104718) X-Git-Tag: v3.12.0b1~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9fcfa60244da85d8847a05e8d5e75d0a6694f90;p=thirdparty%2FPython%2Fcpython.git gh-104717: Add comment about manual loop unrolling (gh-104718) --- diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 7436c113f37c..254cd9ad2f9b 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];