Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 36668 invoked from network); 29 Dec 2010 20:34:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Dec 2010 20:34:11 -0000 Received: (qmail 4536 invoked by uid 500); 29 Dec 2010 20:34:10 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 4473 invoked by uid 500); 29 Dec 2010 20:34:10 -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 4465 invoked by uid 99); 29 Dec 2010 20:34:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Dec 2010 20:34:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Dec 2010 20:34:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBTKXk23018365 for ; Wed, 29 Dec 2010 20:33:47 GMT Message-ID: <24037766.64411293654826788.JavaMail.jira@thor> Date: Wed, 29 Dec 2010 15:33:46 -0500 (EST) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-1000) Small cleanups in couch_db_updater In-Reply-To: <1221864.64181293654465581.JavaMail.jira@thor> 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-1000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975903#action_12975903 ] Paul Joseph Davis commented on COUCHDB-1000: -------------------------------------------- +1 > Small cleanups in couch_db_updater > ---------------------------------- > > Key: COUCHDB-1000 > URL: https://issues.apache.org/jira/browse/COUCHDB-1000 > Project: CouchDB > Issue Type: Improvement > Reporter: Filipe Manana > Assignee: Filipe Manana > Priority: Trivial > Attachments: COUCHDB-1000.patch > > > The following trivial patch avoids doing a full linear search in some situations and avoids unnecessary calls to couch_btree functions and doing list comprehensions when the list of _local docs is empty. > It also seems to add a little, performance gain: > http://graphs.mikeal.couchone.com/#/graph/8bf31813eef7c0b7e37d1ea259020a0b -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.