[pypy-svn] pypy default: Super important optimization.

alex_gaynor commits-noreply at bitbucket.org
Tue Jan 25 18:44:15 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r41328:ca1c893d6991
Date: 2011-01-25 12:43 -0500
http://bitbucket.org/pypy/pypy/changeset/ca1c893d6991/

Log:	Super important optimization.

diff --git a/pypy/module/itertools/interp_itertools.py b/pypy/module/itertools/interp_itertools.py
--- a/pypy/module/itertools/interp_itertools.py
+++ b/pypy/module/itertools/interp_itertools.py
@@ -1048,6 +1048,7 @@
         for _, lim in self.indicies:
             if lim <= 0:
                 self.cont = False
+                break
 
     def roll_gears(self):
         if self.num_gears == 0:


More information about the Pypy-commit mailing list