Storage requirements of primitive types in Win x64

Posted by spender on Stack Overflow See other posts from Stack Overflow or by spender
Published on 2010-05-20T00:10:05Z Indexed on 2010/05/20 0:20 UTC
Read the original article Hit count: 547

Filed under:
|
|
|
|

For either List with n elements, which (if any) requires more storage on x64 machine:

List<int>

-or-

List<long>

I guess the question can be rephrased as:

On x64, does an int take any less space than a long?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#