Evaluator Compiler the class code everytime?
hongv opened this issue · 3 comments
hongv commented
Evaluator Compiler generate and compile the class code everytime?
andbi commented
The engine compiles string expressions only once, when a new Knowledge
instance is created.
You just opened a new issue, what is it exactly? How to reproduce it? If it's not an issue, then I suggest moving it to the Discussions.
hongv commented
i mean in the same JVM process, same string expression can use the same class.
andbi commented
That's exactly what the engine does under the hood whenever it's possible. The default expression parser is just a basic implementation of a SPI (Service Provider Interface), and developers are free to use own implementations of these interfaces.