[
https://issues.apache.org/jira/browse/LUCENE-2292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840379#action_12840379
]
Shay Banon commented on LUCENE-2292:
------------------------------------
Hi,
>> 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 byte[[).
>> 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: https://issues.apache.org/jira/browse/LUCENE-2292
> 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: [email protected]
For additional commands, e-mail: [email protected]