Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 34514 invoked from network); 16 Dec 2005 10:58:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Dec 2005 10:58:53 -0000 Received: (qmail 62146 invoked by uid 500); 16 Dec 2005 10:58:50 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 62121 invoked by uid 500); 16 Dec 2005 10:58:50 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 62109 invoked by uid 99); 16 Dec 2005 10:58:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 02:58:50 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [217.160.91.29] (HELO p15112568.pureserver.info) (217.160.91.29) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Dec 2005 02:58:49 -0800 Received: from [192.168.10.124] (ppp-82-135-81-71.mnet-online.de [82.135.81.71]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by p15112568.pureserver.info (Postfix) with ESMTP id 17583140043 for ; Fri, 16 Dec 2005 11:58:27 +0100 (CET) Message-ID: <43A29DCC.7060406@apache.org> Date: Fri, 16 Dec 2005 11:58:20 +0100 From: Bernhard Messer User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: [jira] Updated: (LUCENE-435) [PATCH] BufferedIndexOutput - optimized writeBytes() method References: <1467497219.1127204314175.JavaMail.jira@ajax.apache.org> <2113278418.1134319868448.JavaMail.jira@ajax.apache.org> <20051216103142.2875f6ad.lukas.zapletal@linuxexpres.cz> In-Reply-To: <20051216103142.2875f6ad.lukas.zapletal@linuxexpres.cz> Content-Type: multipart/alternative; boundary="------------080301030505040006020904" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------080301030505040006020904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lukas, don't worry - we hear you and can see your patch. I will have a look at it the next days. Please keep in mind that all committers are volunteers and spend their rare free time in improving lucene. Bernhard Lukas Zapletal wrote: >Dne Sun, 11 Dec 2005 17:51:08 +0100 (CET) >"Lukas Zapletal (JIRA)" napsal(a): > > > >>I have done what you requested (sorry for the late delay - too busy). I also found a bug in RAMOutputStream - the implementation of flushBuffer method was not able to write any buffers longer than 2*BUFFER_LENGTH. My fast writeBytes patch now handle all various situation and uses the fastest methods to write data. >> >>In my opinion its not good to make BUFFER_LENGTH constant public. Consider making it private since this can lead to nontrivial "dependency" (as I have described above). Its not good to have one buffer length for input, output and RAM* objects (which should have independant buffer length at all - it has nothing to do with the caching in the abstract methods). Making it private and maybe accessible on runtime could help a litte (as I said -- I use the API for some index copying and I would like to have larger buffers). >> >>Anyway, this is my contribution, I am looking for more reviews. The patch includes StoreTest modification which helps with testing either writeByte method or writeBytes methods. Thanks for your attention. >> >> > >Hello, no one interested? > >I would be pleased if you look at it and comment it. I think its >perfect now. > > > --------------080301030505040006020904--