From java-user-return-37519-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Thu Dec 04 21:15:48 2008 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 86892 invoked from network); 4 Dec 2008 21:15:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2008 21:15:48 -0000 Received: (qmail 24689 invoked by uid 500); 4 Dec 2008 21:15:54 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 24667 invoked by uid 500); 4 Dec 2008 21:15:54 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 24656 invoked by uid 99); 4 Dec 2008 21:15:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2008 13:15:53 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of john.wang@gmail.com designates 209.85.217.10 as permitted sender) Received: from [209.85.217.10] (HELO mail-gx0-f10.google.com) (209.85.217.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2008 21:14:25 +0000 Received: by gxk3 with SMTP id 3so97307gxk.5 for ; Thu, 04 Dec 2008 13:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=bcCKMkOhVDf4gv1l0PqIwg+pMZx90Upqeg9TD4kE9MY=; b=kI305m+awAhUaiaIcu91Tor4Ywqok7ibvMREuI9U+kXStDi7qmWl7drcQzU9JxSLqP 1qVDqQv4z3gYlEImgVRW2mgRLn41c1FvzjDAy5KSk2lB6JgKSESrgWffe+r9KfQgcyLz LTp97OnAtUsfSzDaF3EtXXXEsQJ4xt+1+LSHY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=mECkav/ExEW1gVOYQ7l/+4xMNFBXkGIOCKwA2PJ4t2AOD475MJG2aUpCLg0pq0GeD1 qRv1I8OaFzneoOIr31XcvH2IKrlKxPRrykT5OLPaQuEu2sk5C5djky7YjDyn1w8ZWhtg 5EJ5eKnt26oJZ+ImGMF3MW/vAolBpkVe2t/Fg= Received: by 10.90.88.16 with SMTP id l16mr215083agb.33.1228425073414; Thu, 04 Dec 2008 13:11:13 -0800 (PST) Received: by 10.90.51.19 with HTTP; Thu, 4 Dec 2008 13:11:13 -0800 (PST) Message-ID: <8837fb770812041311s120769edta61416d86d158463@mail.gmail.com> Date: Thu, 4 Dec 2008 13:11:13 -0800 From: "John Wang" To: java-user@lucene.apache.org Subject: NIOFSDirectory MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_114933_2767832.1228425073393" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_114933_2767832.1228425073393 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi guys: We did some profiling and benchmarking: The thread contention on FSDIrectory is gone, and for the set of queries we are running, performance improved by a factor of 5 (to be conservative). Great job, this is awesome, a simple change and made a huge difference. To get NIOFSDirectory installed, I didn't find any documentation (doesn't mean there aren't any), after reading the code, I resorted to: static { System.setProperty("org.apache.lucene.FSDirectory.class",NIOFSDirectory.class.getName()); } I am sure this is not the intended usage, as this is really ugly. What is the suggested usage? Thanks -John ------=_Part_114933_2767832.1228425073393--