Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

[jira] Created: (LUCENE-2056) Should NIOFSDir use direct ByteBuffers?

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Nov 11, 2009, 11:04 AM

Post #1 of 1 (157 views)
Permalink
[jira] Created: (LUCENE-2056) Should NIOFSDir use direct ByteBuffers?

Should NIOFSDir use direct ByteBuffers?
---------------------------------------

Key: LUCENE-2056
URL: https://issues.apache.org/jira/browse/LUCENE-2056
Project: Lucene - Java
Issue Type: Improvement
Components: Store
Reporter: Michael McCandless
Priority: Minor


I'm trying to test NRT performance, and noticed when I dump the thread stacks that the darned threads often seem to be in {{java.nio.Bits.copyToByteArray(Native Method)}}... so I wondered whether we could/should use direct ByteBuffers, and whether that would gain performance in general. We currently just use our own byte[] buffer via BufferedIndexInput.

It's hard to test since it's likely platform specific, but if it does result in gains it could be an easy win.

--
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: java-dev-unsubscribe [at] lucene
For additional commands, e-mail: java-dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.