couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Leeds (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COUCHDB-890) Option to use a persistent CommonJS module cache
Date Mon, 23 Jan 2012 09:22:39 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Randall Leeds updated COUCHDB-890:
----------------------------------

    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.


  was:
We need some caching in the commonjs modules so that when you require('jsdom') it doesn't
eval it every time you do a GET request to a show function.

Patch coming.

        Summary: Option to use a persistent CommonJS module cache  (was: Add caching to CommonJS
modules)

Updated in light of COUCHDB-1075 work.
                
> Option to use a persistent CommonJS module cache
> ------------------------------------------------
>
>                 Key: COUCHDB-890
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-890
>             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
pre-JIT'd.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message