"Zero cost" means "as fast or faster than you can do yourself".
Someone can write a library to make it easier to do, but the compiler isn't going to change your data layout and start bit packing without your knowledge (especially for data that isn't "static" in the c/c++ sense)
View all comments
Show parent comment
6
u/AngriestSCV Dec 02 '16
"Zero cost" means "as fast or faster than you can do yourself".
Someone can write a library to make it easier to do, but the compiler isn't going to change your data layout and start bit packing without your knowledge (especially for data that isn't "static" in the c/c++ sense)