I have a BitSet and the info in it looks like this:
00011110111110
Is there any efficient method to get for example max number of continuous bits set? In the example above it would be 5. Or is a loop over the bit set efficient? I am just wondering if there is a another faster way