CouchDB
  1. CouchDB
  2. COUCHDB-890

Option to use a persistent CommonJS module cache

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • 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.

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Development