Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 2837 invoked from network); 23 Feb 2011 09:42:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2011 09:42:06 -0000 Received: (qmail 9645 invoked by uid 500); 23 Feb 2011 09:42:05 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 9023 invoked by uid 500); 23 Feb 2011 09:42:02 -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 9003 invoked by uid 99); 23 Feb 2011 09:42:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 09:42:01 +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; Wed, 23 Feb 2011 09:41:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9828A1B349D for ; Wed, 23 Feb 2011 09:41:38 +0000 (UTC) Date: Wed, 23 Feb 2011 09:41:38 +0000 (UTC) From: "Caolan McMahon (JIRA)" To: dev@couchdb.apache.org Message-ID: <1855967662.10395.1298454098620.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <329559333.10357.1298453378590.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (COUCHDB-1075) Circular require's in CommonJS modules 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-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12998267#comment-12998267 ] Caolan McMahon commented on COUCHDB-1075: ----------------------------------------- A more persistent module cache is implemented here: https://issues.apache.org/jira/browse/COUCHDB-890 However, a module cache which persists between requests may have wider consequences which need discussing. > Circular require's in CommonJS modules > -------------------------------------- > > Key: COUCHDB-1075 > URL: https://issues.apache.org/jira/browse/COUCHDB-1075 > Project: CouchDB > Issue Type: Bug > Components: JavaScript View Server > Reporter: Caolan McMahon > Labels: javascript > Attachments: circular_requires.patch > > > Having a CommonJS module A which requires B, when B also requires A causes the stack to fill up with require calls. A prerequisite for this fix is the caching of modules, even if it is only on a per-request basis. > Patch incoming. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira