Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32133

Change optimistic-types to false in Nashorn ScriptEngine initialization

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2021.0
    • Fix Version/s: None
    • Component/s: Automation

      Description

      It has been observed a strong performance degradation in the evaluation of Automation scripts between 10.10 and 2021.0 due to the change of JDK. The difference is with a factor 4.

      By passing optimistic-types=false (instead true) in AutomationScriptingServiceImpl#
      getScriptEngine, it diminishes the factor by 2, which seems to provide acceptable performances for end-users

      Can this change be applied by default?

      Note sure if this change should be forwarded after LTS 2021, based on the fact that the JDK17 has a different implementation of Nashorn, so LTS 2023 may not be affected.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: