commit | b9fcfa60244da85d8847a05e8d5e75d0a6694f90 | [log] [tgz] |
---|---|---|
author | Dong-hee Na <donghee.na@python.org> | Sun May 21 21:08:28 2023 +0900 |
committer | GitHub <noreply@github.com> | Sun May 21 21:08:28 2023 +0900 |
tree | 419c9049fb46a6acb029bf6f58e3cf4076443c25 | |
parent | 014dd301b5a075a73430eb4e583e851f49d03e29 [diff] |
gh-104717: Add comment about manual loop unrolling (gh-104718)
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];