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

Option to use a persistent CommonJS module cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • JavaScript View Server
    • None
    • All

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: