3 ms·
Congratulations to the Jython team! I do have one question though which I can't seem to find a recent answer for: How's the performance of Jython these days? Es
by FreezerburnV 11y ago
Congratulations to the Jython team! I do have one question though which I can't seem to find a recent answer for: How's the performance of Jython these days? Especially with the 2.7.0 release. The most recent answers I could find on Google were for 2.5 from a few years back which said it was about comparable with CPython. (if that's still the case, that's fine, I'm just curious about that as Jython could make a nice scripting language on top of a Java project and I'd like to be able to keep performance considerations in mind)
- ericfrederich 11y agoGive it a shot. Very little work to get it embedded as a scripting language into an existing Java project. If performance becomes an issue look at Groovy, but it probably won't become an issue. Because its so easy to integrate you should just do it without even looking at performance.
- vorg 11y ago> If performance becomes an issue look at Groovy Or JRuby, Clojure, Scala, or Nashorn.
- Twirrim 11y agoHow is Nashorn these days? I remember seeing there was a big performance fix in one of the JDK8 releases, but I haven't seen anything approaching real world benchmarks, just some very synthetic impractical stuff.
- cafebeen 11y agoDefinitely worth trying--I've used it for the same purpose, and the only performance issue has been a slow startup time (several seconds to load standard libraries).
- FreezerburnV 11y agoDo you know if it's possible to have the loading of the standard libraries offloaded to a separate thread? For example, if I have a program that displays a UI, can I have a progress bar or loading message (or even basic interactivity) using Java code while another thread gets the scripting part of the application spun up?
- cafebeen 11y agoYep, shouldn't be hard. There's pretty fine grained control over what gets loaded and when.
- Notre1 11y agoCheck out Jim Baker's PyCon 2015 talk "Getting to Jython 2.7 and beyond[0]" and associated slides[1]. Using the test.pystone bechmark, it is 30-40% faster than CPython, but the team didn't focus on performance during this release, just compatibility. The performance increases are almost entirely from improvements in the JVM. [0]: https://www.youtube.com/watch?v=hLm3garVQFo#t=1m32s https://www.youtube.com/watch?v=hLm3garVQFo#t=1m32s [1]: https://speakerdeck.com/wolevertest/jim-baker-getting-to-jython-2-dot-7-and-beyond https://speakerdeck.com/wolevertest/jim-baker-getting-to-jyt...