lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shad Storhaug (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENENET-643) NIOFSDirectory performance can be improved
Date Sun, 09 Feb 2020 06:44:00 GMT

     [ https://issues.apache.org/jira/browse/LUCENENET-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shad Storhaug resolved LUCENENET-643.
-------------------------------------
    Fix Version/s: Lucene.Net 4.8.0
       Resolution: Fixed

The fix for this issue has been committed to master in [5da2567ea771538a31566918066d01bde3b6af0f|https://github.com/apache/lucenenet/commit/5da2567ea771538a31566918066d01bde3b6af0f].

> NIOFSDirectory performance can be improved
> ------------------------------------------
>
>                 Key: LUCENENET-643
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-643
>             Project: Lucene.Net
>          Issue Type: Task
>          Components: Lucene.Net Core
>    Affects Versions: Lucene.Net 4.8.0
>            Reporter: Shad Storhaug
>            Assignee: Shad Storhaug
>            Priority: Major
>             Fix For: Lucene.Net 4.8.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message