Hello,

I am using the method

public void exec(String s)

from the class

org.python.util.PythonInterpreter

to evaluate user provided expressions in my java application.

After having profiled my application, I figured this method takes a noticeable amount of time to execute.

What recommendations do you have to make the execution faster?

I basically pass the user provided source code to the jython engine, and then fetch the relevant key-value pairs.

Any pointers about using the jython engine more efficiently would be helpful.

Thanks,

--
Santosh Tiwari
tiwaris@gmail.com