Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0B6C7BB3 for ; Wed, 31 Aug 2011 10:01:46 +0000 (UTC) Received: (qmail 12214 invoked by uid 500); 31 Aug 2011 10:01:44 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 11988 invoked by uid 500); 31 Aug 2011 10:01:37 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 11973 invoked by uid 99); 31 Aug 2011 10:01:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2011 10:01:35 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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, 31 Aug 2011 10:01:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9C5EC42D72 for ; Wed, 31 Aug 2011 10:01:10 +0000 (UTC) Date: Wed, 31 Aug 2011 10:01:10 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: <1363274381.2000.1314784870637.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <52770973.103.1314737470898.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3408) Remove unnecessary memory barriers in DWPT 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/LUCENE-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13094406#comment-13094406 ] Michael McCandless commented on LUCENE-3408: -------------------------------------------- Looks good Simon! Have you tested perf...? Likely minor but you never know :) > Remove unnecessary memory barriers in DWPT > ------------------------------------------ > > Key: LUCENE-3408 > URL: https://issues.apache.org/jira/browse/LUCENE-3408 > Project: Lucene - Java > Issue Type: Improvement > Components: core/index > Affects Versions: 4.0 > Reporter: Simon Willnauer > Assignee: Simon Willnauer > Priority: Minor > Fix For: 4.0 > > Attachments: LUCENE-3408.patch > > > Currently DWPT still uses AtomicLong to count the bytesUsed. Each write access issues an implicite memory barrier which is totally unnecessary since we doing everything single threaded on that level. This might be very minor but we shouldn't issue unnecessary memory barriers causing processors to lock their instruction pipeline for no reason. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org