News for hackers. Stuff that matters.
Re:The gold standard of optimization: A look under the hood ... by fragmede on Monday March 23, 2026 @01:30PM (#47492545)
Fascinating, that's counterintuitive. I'd think the point of using vector <bool> is because the compiler would optimize it to be a bit field which is fewer bits and thus smaller and thus faster than using vector <uint_t8>. How did you come to figure that out?
Re:The gold standard of optimization: A look under the hood ... by YesBox on Monday March 23, 2026 @02:22PM (#47493244)
I dont know how it's implemented by the standard/compiler (not my domain). The performance differences are well documented though.

I've used both in my pathing code and tested each in debug/release.

Even if the std:: implementation was as fast as possible, you're still adding bit manipulation on top of accessing the element, so it will be slower no matter what you do.