rmuir commented on pull request #692:
URL: https://github.com/apache/lucene/pull/692#issuecomment-1049869937


   > @rmuir We can remove the cost estimation, but it will not address the 
problem. I'll try to explain the problem differently in case it helps.
   
   I really think it will address the problem. I understand what is happening, 
but adding 32 more bits that merely get discarded also will not help anything. 
That's what is being discussed here.
   
   It really is all about cost estimation, as that is the ONLY thing in this PR 
actually using the 32 extra bits. That's why i propose to simply use a 
different cost estimation instead. The current cost estimation explodes the 
complexity of this class: that's why we are tracking:
   * `boolean multiValued`
   * `double numValuesPerDoc`
   * `long counter`
   
   There's no need (from allocation perspective, which is all we should be 
concerned about here) to know about any numbers bigger than 
`Integer.MAX_VALUE`, if we get anywhere near numbers that big, we should be 
switching over to the `FixedBitSet` representation.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to