You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Christopher Haws (JIRA)" <ji...@apache.org> on 2014/06/01 00:32:03 UTC

[jira] [Updated] (LUCENENET-541) Performance issue with IOException in FastCharStream.

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

Christopher Haws updated LUCENENET-541:
---------------------------------------

    Attachment: Lucene541Sample.zip

Here is a sample that shows the performance hit. There is a folder called Dependencies that holds the current version of Lucene.Net along with my modified version. Simply switch the referenced version between the two to see the performance impact. From what I can see, when the debugger is attached there is ~%1000 performance improvement, when the debugger is not attached there is ~%35 performance improvement.

> Performance issue with IOException in FastCharStream.
> -----------------------------------------------------
>
>                 Key: LUCENENET-541
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-541
>             Project: Lucene.Net
>          Issue Type: Improvement
>          Components: Lucene.Net Core
>    Affects Versions: Lucene.Net 3.0.3, Lucene.Net 3.6, Lucene.Net 4.0
>            Reporter: Christopher Haws
>            Priority: Minor
>              Labels: performance
>         Attachments: Lucene541Sample.zip
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The Refill() method of the FastCharStream class contains logic based on an IOException being thrown. This logic degrades the performance of every query by about 10x from my testing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)