Let's say I have a bit of interpreter level code code that does something as simple as reduce:
acc = Nonefor 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
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev