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

Cache CommonJS module exports globally and prevent re-execution of required scripts

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5.0
    • Component/s: None
    • Labels:
    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      5
    • Sprint:
      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

              • Assignee:
                cgdrake Chris Drake
                Reporter:
                cgdrake Chris Drake
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: