Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 3830 invoked from network); 1 Dec 2005 11:58:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Dec 2005 11:58:57 -0000 Received: (qmail 45954 invoked by uid 500); 1 Dec 2005 11:58:54 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 45929 invoked by uid 500); 1 Dec 2005 11:58:54 -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 45916 invoked by uid 99); 1 Dec 2005 11:58:53 -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; Thu, 01 Dec 2005 03:58:51 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id DB569C9 for ; Thu, 1 Dec 2005 12:58:29 +0100 (CET) Message-ID: <1525214395.1133438309856.JavaMail.jira@ajax.apache.org> Date: Thu, 1 Dec 2005 12:58:29 +0100 (CET) From: "Volodymyr Bychkoviak (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Created: (LUCENE-475) RAMDirectory(Directory dir, boolean closeDir) constructor uses memory inefficiently. 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 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 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