Manuel, > Your code is more similar to the code example that shows a case where > the optimization doesn’t work. > > Does that explain the behavior you’re seeing? Feel free to make > suggestions on how to clarify the wording.
I think I just interpreted that statement incorrectly, I thought the linear code section explained how the JIT optimized the code, not the preconditions needed for the JIT to function correctly. CF, > Hi Jeremy, > > Can you share how you are running this function? I tried a few variants, and > pypy is often faster than CPython on my attempts, so the rest of your code is > necessary to find out what's wrong. Sure, here's a link to a copy of the benchmark: https://pastebin.com/fR0C6qcB. I also know the JIT definitely can't optimize the iterative version, but even if this is a problem specific to PyPy I wouldn't expect runs to take twice as long compared to CPython. -Jeremy _______________________________________________ pypy-dev mailing list -- pypy-dev@python.org To unsubscribe send an email to pypy-dev-le...@python.org https://mail.python.org/mailman3/lists/pypy-dev.python.org/ Member address: arch...@mail-archive.com