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

2016-05-09 Thread Hoss Man (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-7264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hoss Man updated LUCENE-7264:
-
Fix Version/s: (was: 6.0)
   master (7.0)


Manually correcting fixVersion per Step #S5 of LUCENE-7271


> 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
> Fix For: 6.1, master (7.0)
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



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

2016-04-28 Thread Adrien Grand (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-7264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrien Grand updated LUCENE-7264:
-
Attachment: LUCENE-7264.patch

This patch changes the DocIdSetBuilder API. add() is gone. Instead, grow() 
returns a new BulkAdder object that can be used to add up to the number of 
documents that have been passed to the grow() method. This helps save 
conditionals since the add method never needs to care about whether the buffer 
is large enough or whether to upgrade to a bitset since everything is done 
up-front in the grow() call.

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