Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-643

NIOFSDirectory performance can be improved

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Lucene.Net 4.8.0
    • Lucene.Net 4.8.0
    • Lucene.Net Core
    • None
    • Important

    Description

      The FileStreamExtensions::Read() method is copying bytes from the stream into a ByteBuffer one byte at a time. Performance can be improved by using an overload of Stream.Read() that accepts a byte array.

      If the ByteBuffer.HasArray property is true, a single read operation can be done to move the data into ByteBuffer.Array. Otherwise, the data must be copied into a temporary buffer before calling ByteBuffer.Put.

      Attachments

        Issue Links

          Activity

            People

              nightowl888 Shad Storhaug
              nightowl888 Shad Storhaug
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified