You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2016/04/28 21:17:13 UTC

[jira] [Commented] (LUCENE-7264) Fewer conditionals in DocIdSetBuilder.add

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

Yonik Seeley commented on LUCENE-7264:
--------------------------------------

One possible downside to this change is that it changes a predictable branch (that is handled at the CPU level) into a method call... which if it's not monomorphic can be decompiled at the point of the call and thus end up slower (method call vs predictable branch).  Will be interesting to see the benchmark results.

> Fewer conditionals in DocIdSetBuilder.add
> -----------------------------------------
>
>                 Key: LUCENE-7264
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7264
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7264.patch
>
>
> As reported in LUCENE-7254, DocIdSetBuilder.add has several conditionals that slow down the construction of the DocIdSet.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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