but calling malloc_usable_size(malloc(1)) is giving me 24, so it at least allocated 24 bytes for my 1, plus any tracking overhead
Indeed. Padding exists. A bool is still one byte.
it’ll get 3+ extra bytes added on the next fn call.
…of padding. Jesus. Are you going to claim that uint16_t
is not 2 bytes because it is sometimes followed by padding?
By that measure basically every StackOverflow question asking how to do something is opinion based - the very nature of the site is questions asking for the best solutions. The “opinion based” rules is NOT meant to prevent questions like this. This is the kind of useless pedantry that killed StackOverflow.
I think it comes from a fundamental disconnect. You have something like:
I never said it wasn’t; just that it shouldn’t have been closed.
Again, I never said otherwise. The point is it shouldn’t have been closed.