Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-12047

Backport OPENIDM-12013: Cache CommonJS module exports globally and prevent re-execution of required scripts

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.0.0.4
    • None
    • 1
    • OpenIDM Sprint 6.5-10.2

    Description

      Currently OpenIDM initializes a new CommonJS require instance for each JavaScript script execution within OpenIDM.  The use of a new require instance per script invocation defeats the internal caching of module exports by the CommonJS module and therefore forces all script modules loaded via calls to require() to be re-executed each time they are loaded by CommonJS. The frequent re-loading of JavaScript modules such a lib/lodash.sh as well as the OOTB OpenIDM JavaScript modules has a very significant negative performance impact.

      Attachments

        Issue Links

          Activity

            People

              mark.offutt Mark Offutt [X] (Inactive)
              mark.offutt Mark Offutt [X] (Inactive)
              Jakub Janoska [X] Jakub Janoska [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: