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

NIOFSDirectory performance can be improved

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Lucene.Net 4.8.0
    • Fix Version/s: Lucene.Net 4.8.0
    • Component/s: Lucene.Net Core
    • Labels:
      None
    • Flags:
      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

              • Assignee:
                nightowl888 Shad Storhaug
                Reporter:
                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