kulagaIA opened a new pull request, #15019:
URL: https://github.com/apache/camel/pull/15019

   # Description
   Instead of calling `PythonInterpreter`'s `eval(String s)` method each time 
we evaluate python expression, we can call `compile(String script)` method, 
cache the `PyCode` result and call `eval(PyObject code)`. This way we avoid 
making unnecessary `Py.compile_flags` calls.
   This is also needed for camel-quarkus-python extension 
(https://github.com/apache/camel-quarkus/issues/4408) because if we're 
compiling expressions each time on evaluation, there is nothing to pre-process 
at the build stage.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to