- Unfortunately Jython isn’t optimized like other JVM languages.
- All Jython object properties are as if they were Java
volatile
fields. - Everything in Jython is an object. No primitive datatypes like Java.
- We can do some workarounds like temporarily caching everything as local variables for example.
- But even so the performance gap compared to a native Java (and even some other JVM languages) code is gonna be noticeable.
2 Likes