lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi" <koji.sekigu...@m4.dion.ne.jp>
Subject What is MMapDirectory?
Date Sun, 09 Oct 2005 12:12:34 GMT
Hello,

What is MMapDirectory?

I've searched mailing list archive, but cannot find it.
I could find the following explanation at Lucene 1.9 CHANGES.txt:

 8. Add MMapDirectory, which uses nio to mmap input files.  This is
    still somewhat slower than FSDirectory.  However it uses less
    memory per query term, since a new buffer is not allocated per
    term, which may help applications which use, e.g., wildcard
    queries.  It may also someday be faster. (cutting & Paul Elschot)

And I saw bug 31508:

[PATCH] MMapDirectory for huge index files
http://issues.apache.org/bugzilla/show_bug.cgi?id=31508

But I'm curious to know about MMapDirecotry in more detail about
the following point:

1. Were there any troubles in FSDirectory with huge index files?
2. Is MMapDirectory used for only searching? (not indexing?)
3. Why is MMapDirectory somewhat slower than FSDirectory?
4. Why does MMapDirectory use less memory while using mapped file (mmap)?

Thank you very much in advance,

Koji




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message