I have a use case where I need to create a bit map with size 2^64-1. After some reading and googling over on this topic, i have decided to use dynamic_bitset from the C++ boost library.
Should I be concerned over the large size of bit map ? I would like to get more thoughts on the performance impact for such a huge size on dynamic_bitset. Any other alternatives for dynamic_bitset with respect to this use case ?
Thanks.
Actually, the size of dynamic_bitset
is not limited by the library or by the c++ language itself but it is limited by your RAM size. So, 2^64-1
bits is about 2,305,843,009,213,693,952
bytes, or 2,3
million terabytes. I don't think that you have that much memory in your computer.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.