cutting 2004/10/13 10:19:58 Modified: src/gcj/org/apache/lucene/store GCJDirectory.java Log: Only mmap .frq files, to conserve address space. Revision Changes Path 1.2 +7 -1 jakarta-lucene/src/gcj/org/apache/lucene/store/GCJDirectory.java Index: GCJDirectory.java =================================================================== RCS file: /home/cvs/jakarta-lucene/src/gcj/org/apache/lucene/store/GCJDirectory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- GCJDirectory.java 20 Sep 2004 18:14:25 -0000 1.1 +++ GCJDirectory.java 13 Oct 2004 17:19:58 -0000 1.2 @@ -26,7 +26,13 @@ public class GCJDirectory extends FSDirectory { public IndexInput openInput(String name) throws IOException { - return new GCJIndexInput(new File(getFile(), name).getPath()); + // conserve address space by only mmapping the one index file that most + // impacts performance + if (name.endsWith(".frq")) { + return new GCJIndexInput(new File(getFile(), name).getPath()); + } else { + return super.openInput(name); + } } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]