Grant Edwards <[EMAIL PROTECTED]> writes:

> On 2005-08-03, Mage <[EMAIL PROTECTED]> wrote:
>
>> Isn't jython slower (I mean performance) than java? As well as
>> I understand jython code will be interpreted twice.
>
> Jython gets compiled into Java byte code just like Java gets
> compiled into Java byte code.  Then whatever platform you're
> using either interprets the Java byte code or uses some variant
> of JIT compilation into native object code.

The compiled jython will pay a performance penalty for being
dynamic. Where Java knows the type of objects, and can deduce the
correct method to call at compile time (well, some of the time,
anyway), the jython code will have to do a method search at run time.

Chance are, if you're supposed to be wwriting in Java, your
application isn't sensitive enough to the performance of the code for
this to matter.

         <mike

-- 
Mike Meyer <[EMAIL PROTECTED]>                  http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to