Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 47179 invoked from network); 17 Sep 2010 17:56:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Sep 2010 17:56:58 -0000 Received: (qmail 46880 invoked by uid 500); 17 Sep 2010 17:56:57 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 46672 invoked by uid 500); 17 Sep 2010 17:56:56 -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 46662 invoked by uid 99); 17 Sep 2010 17:56:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Sep 2010 17:56:56 +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, 17 Sep 2010 17:56:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8HHuX0e017121 for ; Fri, 17 Sep 2010 17:56:33 GMT Message-ID: <18622421.255861284746193178.JavaMail.jira@thor> Date: Fri, 17 Sep 2010 13:56:33 -0400 (EDT) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-2650) improve windows defaults in FSDirectory In-Reply-To: <1503156.255711284745957779.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/LUCENE-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir updated LUCENE-2650: -------------------------------- Attachment: LUCENE-2650.patch Here's the patch: * sets the defaults as described in the issue * turns on unmap by default if its possible * when unmapping inputs, we should be careful to never allow the region to be accessed. so in close(), we ensure that clones, too set their buffer to null. and in clone() we add a friendlier exception rather than NPE. > improve windows defaults in FSDirectory > --------------------------------------- > > Key: LUCENE-2650 > URL: https://issues.apache.org/jira/browse/LUCENE-2650 > Project: Lucene - Java > Issue Type: Improvement > Components: Store > Affects Versions: 4.0 > Reporter: Robert Muir > Assignee: Robert Muir > Fix For: 4.0 > > Attachments: LUCENE-2650.patch > > > Currently windows defaults to SimpleFSDirectory, but this is a problem due to the synchronization. > I have been benchmarking queries *sequentially* and was pretty surprised at how much faster > MMapDirectory is, for example for cases that do many seeks. > I think we should change the defaults for windows as such: > if (WINDOWS and UNMAP_SUPPORTED and 64-bit) > use MMapDirectory > else > use SimpleFSDirectory > I think we should just consider doing this for 4.0 only and see how it goes. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org