roaring icon indicating copy to clipboard operation
roaring copied to clipboard

Feature request for 128bit for ipv6 usage.

Open ouvaa opened this issue 1 year ago • 5 comments

@lemire i would like to use 128bit for ipv6, thought of having 2 roaring bitmaps of 64bit each and splitting the ipv6 into 2 segments but i realised i have to call the roaring bitmap from 2 memory location twice.

  1. possible to make a 128bit version?
  2. do u have suggestions to make this faster or better? is it advisable to use ipv6 detection for "flagging" it as a banned ip or similar?

specifically asked u coz i know u are expert in extreme optimization and thanks for all the write ups you have done etc.

ouvaa avatar Apr 17 '24 08:04 ouvaa

There is no plan to support 128-bit bitmaps. It is unclear whether it would be a good idea.

lemire avatar Apr 17 '24 15:04 lemire

@lemire is this the best i can do currently? any alternatives worth exploring?

ouvaa avatar Apr 17 '24 17:04 ouvaa

Maybe you could store these values in a BSI. The interface is 64 bit but you could either split the values into 64 bit words. Failing that it would be easier to modify the BSI sub-library to add support for BigDecimals.

El mié, 17 de abr de 2024, 11:47 a. m., ouvaa @.***> escribió:

@lemire https://github.com/lemire is this the best i can do currently? any alternatives worth exploring?

— Reply to this email directly, view it on GitHub https://github.com/RoaringBitmap/roaring/issues/421#issuecomment-2061869688, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADZZAURFBGUINLPSI56S6T3Y52YR3AVCNFSM6AAAAABGK2FLTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRHA3DSNRYHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

guymolinari avatar Apr 17 '24 18:04 guymolinari