You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Robert Muir (Jira)" <ji...@apache.org> on 2021/12/09 02:59:00 UTC
[jira] [Reopened] (LUCENE-10289) DocIdSetBuilder#grow() should take a long instead of int
[ https://issues.apache.org/jira/browse/LUCENE-10289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir reopened LUCENE-10289:
----------------------------------
I re opened the issue due to perf regressions:
LUCENE-10299
> DocIdSetBuilder#grow() should take a long instead of int
> ---------------------------------------------------------
>
> Key: LUCENE-10289
> URL: https://issues.apache.org/jira/browse/LUCENE-10289
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Ignacio Vera
> Assignee: Ignacio Vera
> Priority: Major
> Fix For: 9.1
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> DocIdSetBuilder accepts adding duplicates and therefore it potentially can accept more than Integer.MAX_VALUE docs. For example, it already holds a counter internally that is a long. It probably make sense to be able to grow using a long instead of an int.
>
> This will allow us to change PointValue.IntersectVisitor#grow() from int to long and remove some unnecessary dance when we need to bulk add more that Integer.MAX_VALUE points.
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org