Dealing with very large bool data set, try to use bit-wise operation to handle it, looking for some library that dealing with bit-set that can:
Obviously std::bitset
's functionalities are too limited for that, any recommendations?
GMP provides low level bit functions on arbitrarily sized natural numbers. These are "low-level GMP functions, used to implement the high-level GMP functions, but also intended for time-critical user code."
These include mpn_popcount
to count 1 bits, and mpn_copyi
to extract sub-sequences.
The BitMagic library might be your friend too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With