[ 
https://issues.apache.org/jira/browse/LUCENE-7915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16109838#comment-16109838
 ] 

ASF subversion and git services commented on LUCENE-7915:
---------------------------------------------------------

Commit 9c154ffbb8cbc67e8284e8971c84689f5810a977 in lucene-solr's branch 
refs/heads/master from [~erickerickson]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9c154ff ]

LUCENE-7915: fix precommit problem


> Avoid looping over merge segments in best merge selection
> ---------------------------------------------------------
>
>                 Key: LUCENE-7915
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7915
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/index
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>            Priority: Trivial
>             Fix For: trunk, 7.1
>
>
> With java 8 we can trivially avoid looping over merge segments to be merged, 
> switching from 
> {code}
> for(SegmentCommitInfo info : merge.segments) {
>   toBeMerged.add(info);
> }
> {code}
> to :
> {code}
> toBeMerged.addAll(merge.segments);
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to