From: Kent Johnson <kent37@td...> - 2004-09-20 12:23:13
An application written in Jython will run more slowly than a comparable app written in pure Java. Jython imposes another layer on top of the Java runtime. This layer implements the Python runtime model. Jython code is compiled to native Java bytecode, but the compiled code still relies heavily on the runtime model.
Take a look at the Java output of jythonc or any of the Jython modules that are implemented in Java (in the Jython source) to get the flavor of what the generated code looks like.
However, there are two important considerations! First, an application written in Jython may take considerably less time to _write_ than the same app written in Java. Second, any Java libraries you use in your app, including standard APIs such as Swing, third-party libraries such as dom4j, and code you write yourself, will all run at full speed the same as in a pure Java app. And you always have the option of writing time-critical code in Java.
In my experience the execution speed of Jython has always been adequate to my needs and the write speed is far superior to Java.
> From: Bishara Gabriel <bgabriel@...>
> Date: 2004/09/13 Mon PM 04:13:19 EDT
> To: jython-users@...
> Subject: [Jython-users] Jython Speed
> Hi all,
> If I write my app in Jython will it be slower than if I wrote it in
> pure Java? If so, how much slower and is this a limitation of the
> Jython compiler?
> Also, does anyone know of a tool that will translate Java bytecode into
> MSIL for .NET?
> Thanks folks!
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> Jython-users mailing list
Get latest updates about Open Source Projects, Conferences and News.