Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 86036 invoked from network); 21 Jun 2009 02:40:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jun 2009 02:40:22 -0000 Received: (qmail 98070 invoked by uid 500); 21 Jun 2009 02:40:31 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 98042 invoked by uid 500); 21 Jun 2009 02:40:31 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 98032 invoked by uid 99); 21 Jun 2009 02:40:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jun 2009 02:40:31 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Jun 2009 02:40:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5499D234C004 for ; Sat, 20 Jun 2009 19:40:07 -0700 (PDT) Message-ID: <1243585495.1245552007333.JavaMail.jira@brutus> Date: Sat, 20 Jun 2009 19:40:07 -0700 (PDT) From: "Edward Ribeiro (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-248) Replace factory method based on explicit locks for a more succint syntax In-Reply-To: <1239708237.1245549367351.JavaMail.jira@brutus> 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/CASSANDRA-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722293#action_12722293 ] Edward Ribeiro commented on CASSANDRA-248: ------------------------------------------ I agree that doing DCL is faster, but it increases the complexity of a simple method and make it more error prone, imho. In addition, I don't know if the performance gain is really substancial in this case. Therefore, a bit slower, but simpler, method can improve the maintainability in the mid term. I'll take a look at other instance() implementations of the code base to implement a one single patch. > Replace factory method based on explicit locks for a more succint syntax > ------------------------------------------------------------------------ > > Key: CASSANDRA-248 > URL: https://issues.apache.org/jira/browse/CASSANDRA-248 > Project: Cassandra > Issue Type: Improvement > Reporter: Edward Ribeiro > Attachments: CASSANDRA-248.patch > > > Replace factory method based on explicit locks for a more succint syntax. The code becomes simpler and more readable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.