[pypy-dev] JITing non looping interpreted functions

Timothy Baldridge tbaldridge at gmail.com
Mon Sep 29 01:28:36 CEST 2014


Let's say I have a bit of interpreter level code code that does something
as simple as reduce:

acc = None
for x in range(10000):
  acc = interpret(func, wrap(x))

return acc


The problem I seem to be hitting is that since there isn't a loop inside
the code (in the func variable) interpret is running, I don't seem to be
getting an efficient trace. In essence I want the trace to start at the
call to interpret, and inline enough of the above loop to end the trace at
the next call to interpret.

What's the best way to go about doing something like that?

Thanks,

Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20140928/c5bed0b8/attachment.html>


More information about the pypy-dev mailing list