You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Bernhard Messer (JIRA)" <ji...@apache.org> on 2005/12/02 18:41:30 UTC
[jira] Closed: (LUCENE-475) RAMDirectory(Directory dir, boolean closeDir) constructor uses memory inefficiently.
[ http://issues.apache.org/jira/browse/LUCENE-475?page=all ]
Bernhard Messer closed LUCENE-475:
----------------------------------
Fix Version: CVS Nightly - Specify date in submission
Resolution: Fixed
Volodymyr,
thanks for the fix. It's reviewed and commited.
Bernhard
> 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
> Fix For: CVS Nightly - Specify date in submission
> 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