C
chesca
Hi everyone.
I'm reading "Programming C#" and I just got to the part about built-in data
types. Apparently, integers are better than smaller types because modern
CPUs are optimized for dealing with them. Also, because of padding which is
inserted for alignment, there's no memory gain to be had. Is this all true?
If so, why are there smaller types?
Thanks.
I'm reading "Programming C#" and I just got to the part about built-in data
types. Apparently, integers are better than smaller types because modern
CPUs are optimized for dealing with them. Also, because of padding which is
inserted for alignment, there's no memory gain to be had. Is this all true?
If so, why are there smaller types?
Thanks.