Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 59994 invoked from network); 1 Oct 2004 20:54:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Oct 2004 20:54:59 -0000 Received: (qmail 91745 invoked by uid 500); 1 Oct 2004 20:53:39 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 91651 invoked by uid 500); 1 Oct 2004 20:53:38 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 91492 invoked by uid 99); 1 Oct 2004 20:53:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [194.109.24.25] (HELO smtp-vbr5.xs4all.nl) (194.109.24.25) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 01 Oct 2004 13:53:33 -0700 Received: from k8l.lan (porta.xs4all.nl [80.127.24.69]) by smtp-vbr5.xs4all.nl (8.12.11/8.12.11) with ESMTP id i91KrTl5080918 for ; Fri, 1 Oct 2004 22:53:29 +0200 (CEST) (envelope-from paul.elschot@xs4all.nl) From: Paul Elschot To: lucene-dev@jakarta.apache.org Subject: Re: Using MMapDirectory fails TestCompoundFile; MMapDirectory for huge indexes Date: Fri, 1 Oct 2004 22:53:29 +0200 User-Agent: KMail/1.5.4 References: <20040928214011.58150.qmail@minotaur.apache.org> <200409302145.35240.paul.elschot@xs4all.nl> <415DBB3B.9000502@apache.org> In-Reply-To: <415DBB3B.9000502@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200410012253.29308.paul.elschot@xs4all.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Friday 01 October 2004 22:16, Doug Cutting wrote: > Paul Elschot wrote: > > I'm working on a memory mapped directory that uses multiple buffers > > for large files. > > Great! > > There will be a small performance hit, as each call to readByte() will > need to first check whether it's overflowed the current buffer, right? Yes. I just simplified that test to a counter equals zero. That counter also is decremented by readByte(). > > While trying some test runs I found that the current version fails a > > test: > > > > [junit] Testsuite: org.apache.lucene.index.TestCompoundFile > > Thanks for testing this! Errr, TestCompoundFile turns out to be quite extensive, so I'll share that with Dmitry. > > > I'm testing the version with multiple buffers using a smaller maximum > > buffer size (1024 * 128), and it does this test in the same way. > > You mean it fails too? Yes, it behaves in the same way. It also passes the remaining tests from TestCompoundFile for a smaller maximum buffer size. > > I have not yet looked into TestCompoundFile. When it is a good test > > case for this, I'll submit the multibuffer version as an enhancement. > > Thanks, that would be great. A new version of MMapDirectory is on it's way with a few comments on possible performance improvements. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org