On 03/18/2018 11:14 PM, Matt Billenstein wrote:
Seems you need to just trigger whatever heuristic causes the JIT to run on the
interesting codepaths during application startup.
Would having a small for loop in a module global namespace that called down
through your stack do the trick?
===== somemodule.py
def foo(...):
# maybe this function calls through several layers of code in other
# modules...
...
for i in range(20):
foo(...) # prewarm foo...
=====
That would be hard, I guess. For example I couldn't reach the processing
layer of a connection object this way, only with real queries.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev