Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Lucene.Net 4.8.0
-
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
- Is contained by
-
LUCENENET-630 Identify/Fix Bottlenecks
- Closed