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

Simon Willnauer commented on LUCENE-1767:
-----------------------------------------

Jason, I would expect a sizeOf method to return the size of the bitset itself 
(what #size()) returns. Maybe you find another name for that method. I also 
think you can safely leave the constants out - once you leave those out this 
method is almost identical to #capacity / #size.

I'm not sure if such a method would rather confuse users / developers. If we 
add it I would rather go for a very meaningful name like allocatedBytes.

simon

> Add sizeof to OpenBitSet
> ------------------------
>
>                 Key: LUCENE-1767
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1767
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 2.4.1
>            Reporter: Jason Rutherglen
>            Priority: Trivial
>             Fix For: 2.9
>
>         Attachments: LUCENE-1767.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Adding a sizeof method to OpenBitSet will facilitate estimating RAM usage 
> when many OBS' are cached (such as Solr).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to