lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shay Banon (JIRA)" <>
Subject [jira] Commented: (LUCENE-2292) ByteBuffer Directory - allowing to store the index outside the heap
Date Tue, 02 Mar 2010 23:18:27 GMT


Shay Banon commented on LUCENE-2292:


>> looks interesting as a replacement for RAMDirectory.

This class uses ByteBuffer, which has its overhead over simple byte[], though using the same
logic (if you verify it) can be used to improve the concurrency in RAMDirectory (just use

>> Your patch uses a "sun." internal package. If you want to do something similar to
MMapDirectory to release the buffer without waiting for GC, do it in the same way using reflection
like in MMapDirectory.

>From what I know, it was there in all JDKs I worked with (its like sun.misc.Unsafe). Have
you seen otherwise? If so, its a simple change (though I am not sure about the access control
thingy in MMapDirectory, its a performance killer, and caching of the Method(s) make sense).


> ByteBuffer Directory - allowing to store the index outside the heap
> -------------------------------------------------------------------
>                 Key: LUCENE-2292
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Store
>            Reporter: Shay Banon
>         Attachments: LUCENE-2292.patch
> A byte buffer based directory with the benefit of being able to create direct byte buffer
thus storing the index outside the JVM heap.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message