Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 17130 invoked from network); 2 Dec 2005 12:38:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Dec 2005 12:38:00 -0000 Received: (qmail 28237 invoked by uid 500); 2 Dec 2005 12:37:57 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 28153 invoked by uid 500); 2 Dec 2005 12:37:56 -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 28088 invoked by uid 99); 2 Dec 2005 12:37:56 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 04:37:54 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id B9383DE for ; Fri, 2 Dec 2005 13:37:33 +0100 (CET) Message-ID: <2097108853.1133527053756.JavaMail.jira@ajax.apache.org> Date: Fri, 2 Dec 2005 13:37:33 +0100 (CET) From: "Volodymyr Bychkoviak (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-475) RAMDirectory(Directory dir, boolean closeDir) constructor uses memory inefficiently. In-Reply-To: <1525214395.1133438309856.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/LUCENE-475?page=comments#action_12359150 ] Volodymyr Bychkoviak commented on LUCENE-475: --------------------------------------------- agree > RAMDirectory(Directory dir, boolean closeDir) constructor uses memory inefficiently. > -------------------------------------------------------------------------------------- > > Key: LUCENE-475 > URL: http://issues.apache.org/jira/browse/LUCENE-475 > Project: Lucene - Java > Type: Improvement > Components: Store > Reporter: Volodymyr Bychkoviak > Attachments: RamDirectory.diff, RamDirectory2.diff > > recently I found that RAMDirectory(Directory dir, boolean closeDir) constructor uses memory inefficiently. > files from source index are read entirely intro memory as single byte array which is after all is thrown away. And if I want to load my 200M optimized, compound format index to memory for faster search I should give JVM at least 400Mb memory limit. For larger indexes this can be an issue. > I've attached patch how to solve this problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org