mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-104717: Add comment about manual loop unrolling (gh-104718)
This commit is contained in:
parent
014dd301b5
commit
b9fcfa6024
1 changed files with 1 additions and 0 deletions
|
@ -944,6 +944,7 @@ unicodekeys_lookup_unicode(PyDictKeysObject* dk, PyObject *key, Py_hash_t hash)
|
||||||
}
|
}
|
||||||
perturb >>= PERTURB_SHIFT;
|
perturb >>= PERTURB_SHIFT;
|
||||||
i = mask & (i*5 + perturb + 1);
|
i = mask & (i*5 + perturb + 1);
|
||||||
|
// Manual loop unrolling
|
||||||
ix = dictkeys_get_index(dk, i);
|
ix = dictkeys_get_index(dk, i);
|
||||||
if (ix >= 0) {
|
if (ix >= 0) {
|
||||||
PyDictUnicodeEntry *ep = &ep0[ix];
|
PyDictUnicodeEntry *ep = &ep0[ix];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue