+1, oh yes,

Just interesting how much attention this snippet of code received. :)

Roger


On 6/29/2017 10:18 AM, Brian Burkhalter wrote:
Hi Roger,

On Jun 29, 2017, at 6:58 AM, Roger Riggs <roger.ri...@oracle.com <mailto:roger.ri...@oracle.com>> wrote:

Pretty code; though the part about creating an array to create a BitSet is a bit non-obvious.

But how much garbage does it create and extra runtime doing all that fancy stuff.

Probably either of the second two versions I posted generates more than my original brute approach. Beaty at the expense of efficiency perhaps.

Now if BitSet had a constructor from the bits in a long...

Could be an RFE …

Is this also a +1?

Thanks,

Brian

Reply via email to