[
https://issues.apache.org/jira/browse/LUCENE-5044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13678093#comment-13678093
]
Martijn van Groningen commented on LUCENE-5044:
-----------------------------------------------
The tests ran fine with the your latest diff. Changes to grouping tests are ok,
but the other tests (TestIndexWriterWithThreads, TestIndexWriterExceptions,
TestConcurrentMergeScheduler) seem ok, but can't tell for sure.
> wasted work in AllGroupHeadsCollectorTest.arrayContains()
> ---------------------------------------------------------
>
> Key: LUCENE-5044
> URL: https://issues.apache.org/jira/browse/LUCENE-5044
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: 4.3
> Environment: any
> Reporter: Adrian Nistor
> Priority: Minor
> Labels: patch, performance
> Attachments: patchAll.diff, patch.diff
>
>
> The problem appears in version 4.3.0 and in revision 1490286. I
> attached a one-line patch that fixes it.
> In method "AllGroupHeadsCollectorTest.arrayContains", the loop over
> "actual" should break immediately after "found" is set to "true". All
> the iterations after "found" is set to "true" do not perform any
> useful work, at best they just set "found" again to "true".
> Method "processWord" in class "CapitalizationFilter" has a similar
> loop (over "prefix"), and this loop breaks immediately after "match"
> is set to "false", just like in the proposed patch. Other methods
> (e.g., "Step.apply", "JapaneseTokenizer.computePenalty",
> "CompressingStoredFieldsWriter.saveInts", "FieldQuery.checkOverlap")
> also have similar loops with similar breaks, just like in the proposed
> patch.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]