Re: RFR: 8300487: Store cardinality as a field in BitSet

2023-01-18 Thread Simon Tooke
On Wed, 11 Jan 2023 16:02:40 GMT, Sergey Kuksenko wrote: > It would be better to see benchmark results other than cardinality operation. > To understand how big performance regression is. Agreed - I suspect this is adding unnecessary overhead to the most common uses of BitSet; I'd be tempted t

Re: RFR: 8300487: Store cardinality as a field in BitSet

2023-01-18 Thread Simon Tooke
On Tue, 3 Jan 2023 23:25:39 GMT, fabioromano1 wrote: > The enanchment is useful for applications that make heavy use of BitSet > objects as sets of integers, and therefore they need to make a lot of calls > to cardinality() method, which actually require linear time in the number of > words in