lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-7915) Avoid looping over merge segments in best merge selection
Date Tue, 01 Aug 2017 13:02:00 GMT

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

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

Commit 59997091c8f991b55899d6feb5d5c05e720f78a7 in lucene-solr's branch refs/heads/master
from [~teofili]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5999709 ]

LUCENE-7915 - avoid looping over merges on best merge selection


> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message