]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104717: Add comment about manual loop unrolling (gh-104718)
authorDong-hee Na <donghee.na@python.org>
Sun, 21 May 2023 12:08:28 +0000 (21:08 +0900)
committerGitHub <noreply@github.com>
Sun, 21 May 2023 12:08:28 +0000 (21:08 +0900)
Objects/dictobject.c

index 7436c113f37c4ae304a92a7f612fb45f72c01c67..254cd9ad2f9bdad9724da17766ab42ba20e1f8e0 100644 (file)
@@ -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];