Re:20 bit operations programmers should know
by joshguthrie on Saturday June 08, 2013 @10:44AM
(#5844990)
Bit operations are a great way to store multiple datas in one place (you still have to limit yourself to 32 true/false flags though).
My latest use has been to store (multiple) categories of an item in a database in a single spot and do a quick search through bit operations (instead of joining to another table to fetch relations between item and categories).
My latest use has been to store (multiple) categories of an item in a database in a single spot and do a quick search through bit operations (instead of joining to another table to fetch relations between item and categories).