Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bluetomcat
on Jan 8, 2016
|
parent
|
context
|
favorite
| on:
How to C in 2016
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.
annathebannana
on Jan 8, 2016
[–]
If you are sure that this is going to be the case, then use uint_least8_t.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: