mattip: Oh, many thanks. I measure the performance of threaded code generation in PyPy (you can find the code at the threaded-code-generation branch in PyPy repo). It is the reason why I ask here. Threaded code generation is still work-in-progress, so I currently use the branch py3.7-hack-measure-bytecode-dispatch.
the idea is to run the JIT in another thread?
that does make sense
mattip: Thread in threaded code doesn't mean a thread. It is a technique to generate code that essentially contains call instructions to subroutines. I and cfbolz are creating a method-based JIT on PyPy.