Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 94925 invoked from network); 16 Apr 2011 04:02:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2011 04:02:53 -0000 Received: (qmail 4032 invoked by uid 500); 16 Apr 2011 04:02:52 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 3744 invoked by uid 500); 16 Apr 2011 04:02:51 -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 3719 invoked by uid 99); 16 Apr 2011 04:02:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Apr 2011 04:02:47 +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; Sat, 16 Apr 2011 04:02:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2C668A43D0 for ; Sat, 16 Apr 2011 04:02:06 +0000 (UTC) Date: Sat, 16 Apr 2011 04:02:06 +0000 (UTC) From: "Damien Katz (JIRA)" To: dev@couchdb.apache.org Message-ID: <1649817269.62040.1302926526178.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <227576417.61534.1302909966213.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1124) Refactor couch_btree.erl 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-1124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020554#comment-13020554 ] Damien Katz commented on COUCHDB-1124: -------------------------------------- I have't looked closely at the patch, but with this module it's most important to not lose performance. One thing that jumps out at me is the cmp_keys function. I'd be sure to benchmark the the view indexing with large, complex keys, and the less comparisons will likely be happening more often and we've seen that be a performance bottleneck in the past. > Refactor couch_btree.erl > ------------------------ > > Key: COUCHDB-1124 > URL: https://issues.apache.org/jira/browse/COUCHDB-1124 > Project: CouchDB > Issue Type: Improvement > Reporter: Paul Joseph Davis > Attachments: 0001-Refactor-couch_btree.erl.patch > > > I've completely refactored couch_btree.erl in an attempt to make it more palatable for people that want to learn it. The current version is quite organic in its nature and this cleans up the code to be more consumable. Most everyone that's seen this patch has wanted it in trunk but I never got around to committing it. > The patch I'm about to attach is quite gnarly as it's basically deleting and recreating the entire file. I find it quite a bit more helpful to read the end result which you can do at [1]. > Also, if we do commit this then the code in COUCHDB-1084 will be quite broken for the btree section. If that patch still applies cleanly to the other files I'm going to try and update the btree code for it tonight. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira