touisteur
touisteur
Hi sorry I just reread the blocks=ranges comment, I'm not working with ranges, just discrete indices (like a unique increasing ID in a file). As an example : blocks =...
Oh yes thanks I understand this is not directly possible with sets. I was looking for the 'best' way to iterate over the result of the 'and' operation with the...
It seems your code @ppiotrow does almost what i want with the advanceIfNeeded() I'll need to try that and compare with the naive blocks.and(presence).foreach (i => result.add (blocks.select(i), i)
> > It seems having two running iterators might be the 'best' way to do this? > > I would not call this approach "minimum overhead". Using iterators brings about...
> `blocks& presence` equals `{0,6}` not `{0, null, 6, null, null}`. You cannot express reserved positions with `nulls` in Roaring Bitmap or any Set implementation. > You can however calculate...