Author: Alex Gaynor <alex.gay...@gmail.com>
Branch: python-loop-unroll
Changeset: r65462:3c56ab0bd397
Date: 2013-07-18 09:50 -0700
http://bitbucket.org/pypy/pypy/changeset/3c56ab0bd397/

Log:    Remove the heuristic for now.

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -884,8 +884,7 @@
     def GET_ITER(self, oparg, next_instr):
         from pypy.module.__pypy__.interp_unroll import W_LoopUnroller
         w_iterable = self.popvalue()
-        length_hint = self.space.length_hint(w_iterable, sys.maxint)
-        if (jit.isconstant(length_hint) and length_hint < 20) or 
isinstance(w_iterable, W_LoopUnroller):
+        if isinstance(w_iterable, W_LoopUnroller):
             lastblock = self.lastblock
             # This is the case for comprehensions, which don't add a frame
             # block, annoying (for now ignore the problem).
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to