Timeline for What is the performance of std::bitset?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 24, 2023 at 8:54 | comment | added | Stewart |
We didn't rewrite std::bitset . We found that it was simply being used to wrap an existing 32-bit word, and then pull a specific bit out. There are easy ways to do that: bool getBit(uint32_t word, size_t pos) { return (word >> pos) & 0x1; }
|
|
Oct 17, 2022 at 9:56 | comment | added | cppBeginner |
By "We replaced this with manual operations", do you rewrite std::bitset , or hack it? I also have bottleneck at the std::bitset .
|
|
Jun 18, 2018 at 14:16 | comment | added | Stewart | msvc 12 I think from Visual Studio 2008 | |
Jun 18, 2018 at 1:37 | comment | added | user1319829 | What compiler was that? | |
Dec 21, 2017 at 8:06 | history | answered | Stewart | CC BY-SA 3.0 |