couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (Commented) (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-890) Option to use a persistent CommonJS module cache
Date Mon, 23 Jan 2012 09:36:40 GMT


Paul Joseph Davis commented on COUCHDB-890:

While true, the awesomely scary aspect is code loaded into the SM VM when code is run by different
> Option to use a persistent CommonJS module cache
> ------------------------------------------------
>                 Key: COUCHDB-890
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: JavaScript View Server
>         Environment: All
>            Reporter: mikeal
>         Attachments: commonjscache.diff
> 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

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message