[ 
https://issues.apache.org/jira/browse/JEXL-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17643852#comment-17643852
 ] 

Henri Biestro commented on JEXL-389:
------------------------------------

The JEXL engine reuses the parser so that exception creation happens only once 
in single threaded usage.
More than one parser can be created when concurrent parsing occurs. So, for 
JEXL concurrent parser creation performance to be of importance in a platform, 
that seems like an odd scenario.
In any case, even though this is very unlikely to be a concern in real life, 
patching the Parser.java the way SOLR-11242 does seems easy enough.

> Improve parsing timings
> -----------------------
>
>                 Key: JEXL-389
>                 URL: https://issues.apache.org/jira/browse/JEXL-389
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 3.2.1
>            Reporter: Dmitri Blinov
>            Assignee: Henri Biestro
>            Priority: Minor
>             Fix For: 3.3
>
>
> There seems to be a known and old issue with javacc with respect to creation 
> of LookaheadSuccess exception instance inside parser class, which hits the 
> performance if parsing is intensively used and many Parser objects are 
> created. 
> More details and suggested fixing approach can be looked at 
> https://issues.apache.org/jira/browse/SOLR-11242
> I think we can adopt the fix until it will be fixed in javacc.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to