Forum C# Array Memory Limits

Array Memory Limits

Postby mfranzs » June 7th, 2011, 3:30 am

Is there a disadvantage to storing large arrays (such as lengths in the thousands) ?

Could this clog up my memory or something?

There will only be one of these arrays, but it will constantly be overwritten / written to / changed.
mfranzs
 
Posts: 98
Joined: August 29th, 2010, 3:27 am

Re: Array Memory Limits

Postby Henrik » June 7th, 2011, 11:34 am

What? No? :)
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Array Memory Limits

Postby mfranzs » June 7th, 2011, 9:51 pm

Okay, that was probably a stupid question :P

On the same track, is there a downside to always using Int64 (Compared to int32)?

Im wondering because some of my epoch times are too large..
mfranzs
 
Posts: 98
Joined: August 29th, 2010, 3:27 am

Re: Array Memory Limits

Postby Oliver » June 9th, 2011, 10:46 am

Well, it'll take up more storage, and on non-64bit CPU's it'll take more processing time to work with than ints. But, in reality, it's no difference worth talking about :-)

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am


Return to C#