Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-890

Option to use a persistent CommonJS module cache

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JavaScript View Server
    • Labels:
      None
    • Environment:

      All

    • Skill Level:
      New Contributors Level (Easy)

      Description

      Since COUCHDB-1075, there is a CommonJS module cache used for resolving circular CommonJS dependencies. However, Caolan reports a 10x speed improvement by not clearing this cache between requests. An option to not clear the cache could be a great tool for performance-interested power users who know their CommonJS modules are sane. The improvement will be even greater when we turn on the JIT compiler in SpiderMonkey since cached modules will benefit from being pre-JIT'd.

        Attachments

        1. commonjscache.diff
          2 kB
          mikeal

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikeal mikeal
            • Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: