News for hackers. Stuff that matters.
Re:How to C in 2016 by bluetomcat on Friday January 08, 2016 @10:09AM (#10865342)
What if your array is never going to be larger than, say, UINT8_MAX, and you need to pack thousands of these "sizes" into an array of structs? Using an 8-byte size_t in that case will inflate the cache usage significantly.
Re:How to C in 2016 by annathebannana on Friday January 08, 2016 @10:21AM (#10865446)
If you are sure that this is going to be the case, then use uint_least8_t.