[Python-checkins] cpython: Minor tweeak to tighten the inner-loop.

raymond.hettinger python-checkins at python.org
Fri Jun 26 11:50:26 CEST 2015


https://hg.python.org/cpython/rev/d9e83e426565
changeset:   96683:d9e83e426565
parent:      96680:7846aadbd4f5
user:        Raymond Hettinger <python at rcn.com>
date:        Fri Jun 26 02:50:21 2015 -0700
summary:
  Minor tweeak to tighten the inner-loop.

files:
  Objects/setobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/setobject.c b/Objects/setobject.c
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -199,7 +199,7 @@
                         goto found_active;
                     mask = so->mask;
                 }
-                if (entry->hash == -1 && freeslot == NULL)
+                else if (entry->hash == -1 && freeslot == NULL)
                     freeslot = entry;
             }
         }

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list