Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08A559FB7 for ; Thu, 16 Feb 2012 22:52:40 +0000 (UTC) Received: (qmail 30858 invoked by uid 500); 16 Feb 2012 22:52:38 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 30787 invoked by uid 500); 16 Feb 2012 22:52:38 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 30763 invoked by uid 99); 16 Feb 2012 22:52:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 22:52:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 22:43:22 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 208CD1BB053 for ; Thu, 16 Feb 2012 22:43:01 +0000 (UTC) Date: Thu, 16 Feb 2012 22:43:01 +0000 (UTC) From: "Randall Leeds (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <1028932556.48576.1329432181134.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-890) Option to use a persistent CommonJS module cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209840#comment-13209840 ] Randall Leeds commented on COUCHDB-890: --------------------------------------- Osher, the best way to get real-time support is to find developers in IRC in the #couchdb room on Freenode. The wiki has build documentation. The main.js script the server runs is in the directory share/server. Those files are all concatenated at build time (see Makefile.am in that directory) and output to the file main.js. To debug you can try to run the file directly with the couchjs program and pretend to be the CouchDB side of the View Server Protocol, which you can also find on the wiki. > 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