From dev-return-13796-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Fri Dec 10 11:06:26 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 49418 invoked from network); 10 Dec 2010 11:06:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Dec 2010 11:06:25 -0000 Received: (qmail 20880 invoked by uid 500); 10 Dec 2010 11:06:24 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 20727 invoked by uid 500); 10 Dec 2010 11:06:24 -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 20719 invoked by uid 99); 10 Dec 2010 11:06:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Dec 2010 11:06:23 +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; Fri, 10 Dec 2010 11:06:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBAB62Z0005360 for ; Fri, 10 Dec 2010 11:06:02 GMT Message-ID: <32831210.55861291979162051.JavaMail.jira@thor> Date: Fri, 10 Dec 2010 06:06:02 -0500 (EST) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-980) Micro optimization to couch_file In-Reply-To: <7672093.16421291820520859.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Filipe Manana updated COUCHDB-980: ---------------------------------- Fix Version/s: 1.2 1.1 1.0.2 Backported to 1.1.x and 1.0.x as well. > Micro optimization to couch_file > -------------------------------- > > Key: COUCHDB-980 > URL: https://issues.apache.org/jira/browse/COUCHDB-980 > Project: CouchDB > Issue Type: Improvement > Components: Database Core > Reporter: Filipe Manana > Assignee: Filipe Manana > Fix For: 1.0.2, 1.1, 1.2 > > > The following short patch moves the MD5 verification outside the couch_file server: > https://github.com/fdmanana/couchdb/commit/51c463d682c478dcb273bd88f1ef3046a709689f > Despite being apparently so insignificant (couch_util:md5/1 takes about 700us in my machine), I get this significant results with relaximation: > $ node tests/compare_write_and_read.js --wclients 100 --rclients 200 \ > -name1 md5_out -name2 trunk \ > -url1 http://localhost:5984/ -url2 http://localhost:5985/ \ > --duration 120 > run 1) http://graphs.mikeal.couchone.com/#/graph/5c859b3e7d1b9bd0488cfe271105130c > run 2) http://graphs.mikeal.couchone.com/#/graph/5c859b3e7d1b9bd0488cfe2711051bba > The documents used in the test have a size of about 1Kb. > If nobody has an objection, I'll commit this to trunk. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.