CPython vs. Jython/JPython

Delaney, Timothy tdelaney at avaya.com
Mon Oct 30 02:02:13 EST 2000


> >         It will still be *many* times slower than CPython due to the
> > overhead of JNI.
> 
> I'm not sure if I follow; IIRC, the JNI is faster than CPython's
> native dispatch.

Ah - but if you're trying to speed up a *Java* version of Python ... you're
going to be constantly switching between JNI-called code and Java code.

In CPython, there is no need for *this* context switch. Others yes ... but
they would also need to be done in J(P)ython, *plus* the JNI overhead.

Tim Delaney
Avaya Australia




More information about the Python-list mailing list