2 Aug
2018
2 Aug
'18
12:39 p.m.
On Thu, Aug 2, 2018 at 10:16 AM, Robert Bradshaw robertwb@math.washington.edu wrote:
There's nothing about the C-API that prevents a JIT (in fact numba can do exactly that, though its more focused on operating exclusively on unboxed types) and such a jit could optimize CFFI calls just as well. But so long as the default mode is interpreted, always operating on boxed objects, it will be slower.
Indeed, and as long as the C-API works with Python objects, a JIT has to pass actual boxed Python objects to code written using the C-API, which makes improving the performance of calls across the boundary between the "interpreter" and the C-API using code somewhat hopeless.