summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2023-05-21 12:08:28 (GMT)
committerGitHub <noreply@github.com>2023-05-21 12:08:28 (GMT)
commitb9fcfa60244da85d8847a05e8d5e75d0a6694f90 (patch)
tree419c9049fb46a6acb029bf6f58e3cf4076443c25 /Objects/dictobject.c
parent014dd301b5a075a73430eb4e583e851f49d03e29 (diff)
downloadcpython-b9fcfa60244da85d8847a05e8d5e75d0a6694f90.zip
cpython-b9fcfa60244da85d8847a05e8d5e75d0a6694f90.tar.gz
cpython-b9fcfa60244da85d8847a05e8d5e75d0a6694f90.tar.bz2
gh-104717: Add comment about manual loop unrolling (gh-104718)
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c1
1 files changed, 1 insertions, 0 deletions
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];