[
https://issues.apache.org/jira/browse/LUCENE-7915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16108860#comment-16108860
]
ASF subversion and git services commented on LUCENE-7915:
---------------------------------------------------------
Commit 5049e841f36f1a762df3c19378e0c21dbb237b20 in lucene-solr's branch
refs/heads/branch_7x from [~teofili]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5049e84 ]
LUCENE-7915 - avoid looping over merges on best merge selection
(cherry picked from commit 5999709)
> 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
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]