Subbu created OPENNLP-1892:
------------------------------

             Summary: Uncached Pattern Compilations
                 Key: OPENNLP-1892
                 URL: https://issues.apache.org/jira/browse/OPENNLP-1892
             Project: OpenNLP
          Issue Type: Improvement
            Reporter: Subbu


AncoraSpanishHeadRules.java does String.matches(regex) which internally calls 
Pattern.compile(regex) fresh on *every single call.* A simple branching parse 
tree could trigger dozens to hundreds of redundant Pattern.compile() calls per 
sentence, all compiling the same handful of patterns repeatedly



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

Reply via email to