4 ms·
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
by joshguthrie 13y ago
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).