Packing two small numbers into a single byte

In this day and age, you don’t usually need to think about saving memory. Need a whole number? Just use an int! Who really cares if the maximum value will never get above 255? Using a byte is just archaic! Well, if you’re looking at optimizing network traffic or database usage, those bytes could add … [Read more…]