Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2056

Should NIOFSDir use direct ByteBuffers?

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • core/store
    • None
    • New

    Description

      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.

      Attachments

        1. LUCENE-2056.patch
          9 kB
          Michael McCandless

        Activity

          People

            Unassigned Unassigned
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: