Re: RFR: 8300487: Store cardinality as a field in BitSet [v2]

2023-01-18 Thread fabioromano1
On Wed, 18 Jan 2023 11:37:05 GMT, Alan Bateman wrote: > It looks all the javadoc and several areas of the code have been > re-formatted. Please revert all of this as it's impossible to see what has > been changed. Done. - PR: https://git.openjdk.org/jdk/pull/11837

Re: RFR: 8300487: Store cardinality as a field in BitSet [v2]

2023-01-18 Thread Alan Bateman
On Wed, 18 Jan 2023 11:31:23 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 >> wor

Re: RFR: 8300487: Store cardinality as a field in BitSet [v2]

2023-01-18 Thread fabioromano1
> 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 use by the bit set. > This optimization reduces the co