From: Raymond Hettinger Date: Fri, 26 Jun 2015 09:50:21 +0000 (-0700) Subject: Minor tweeak to tighten the inner-loop. X-Git-Tag: v3.6.0a1~2040 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91672617d5189e3593415a2a3e7df759ff3aca6b;p=python Minor tweeak to tighten the inner-loop. --- diff --git a/Objects/setobject.c b/Objects/setobject.c index 5b430b380e..85cb4bc16a 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -199,7 +199,7 @@ set_insert_key(PySetObject *so, PyObject *key, Py_hash_t hash) goto found_active; mask = so->mask; } - if (entry->hash == -1 && freeslot == NULL) + else if (entry->hash == -1 && freeslot == NULL) freeslot = entry; } }