Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.9, 2.4.3
    • Fix Version/s: None
    • Component/s: class generator
    • Labels:
      None

      Description

      It seems InvokeHelper cannot cache the results of Pattern#compile at all when running embedded Groovy scripts.

      When this is combined with regular expressions and a somewhat large number scripts, there is a very large hit to performance when these scripts need to be constantly run.

      Using Java 8u40. and close to 10k scripts, the same 10k scripts are properly cached and reused but Pattern objects are constantly re-compiled.

      I am using a ConcurrentHashMap from a custom implementation of InvokeHelper at the moment to workaround the problem but having a supported way of controlling this behavior would be welcomed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pjulien Patrick Julien
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: