Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
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.