excellent question!
________________________________ From: Marios Iliofotou <iliofo...@gmail.com> Sent: Wednesday, November 1, 2017 5:47 PM To: user@commons.apache.org Subject: [jexl] jexl performance compared to vanilla Java Hi all, I was wondering if there was any discussion regarding the impact of having jexl based filtering logic in your code compared to implementing the "same" logic using vanilla Java code? MG>to cache compiled results from Java code you the developer will need to implement a cache strategy for Pattern https://stackoverflow.com/questions/23038502/does-java-util-regex-cache-the-compiled-patterns MG>JEXL allows you to specifically cache n number results with JexlBuilder.cache(n) http://commons.apache.org/proper/commons-jexl/reference/examples.html JEXL – Apache Commons JEXL Examples<http://commons.apache.org/proper/commons-jexl/reference/examples.html> commons.apache.org Overview. In this reference you will find the following topics to help with your use of JEXL. Evaluating Expressions; Custom Contexts; Example Expressions <https://stackoverflow.com/questions/23038502/does-java-util-regex-cache-the-compiled-patterns> [https://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-i...@2.png?v=73d79a89bded]<https://stackoverflow.com/questions/23038502/does-java-util-regex-cache-the-compiled-patterns> Does java.util.regex cache the compiled patterns? - Stack ...<https://stackoverflow.com/questions/23038502/does-java-util-regex-cache-the-compiled-patterns> stackoverflow.com >From PCRE Introduce This extension maintains a global per-thread cache of >compiled regular expressions (up to 4096). How about java.util.regex, will >this cache the ... MG>so as far as simplicity JEXL supports caching natively.. MG>the JDK appears to leave caching regular-expressions to the developer.. Any lead would be greatly appreciated. Thank you! Marios