gh-104717: Add comment about manual loop unrolling (gh-104718)

This commit is contained in:
Dong-hee Na 2023-05-21 21:08:28 +09:00 committed by GitHub
parent 014dd301b5
commit b9fcfa6024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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];