Jpype
JPype is an effort to allow python programs full access to java class libraries
Py4j
Py4J enables Python programs to dynamically access arbitrary Java objects
Discussion performance solutions
Example |
---|
"In terms of performance py4j has a bigger overhead than both of the previous solutions jython and jpype because it relies on sockets but if performance is critical to your application accessing java objects from python programs might not be the best idea" from question Py4J has bigger overhead than Jython and JPype |
"You can see the discussion here py4j has bigger overhead than jython and jpype" from question How to run Scala class in python? |