Maximum number of elements in a 2D array

  • Thread starter Thread starter Tales Normando
  • Start date Start date
T

Tales Normando

Hi,

I'm writing a program where I need to generate a huge 2D table
(average 10000x5000) and I'm concerned about limitations in the number of
elements and memory space. Is it too big for .NET standards? Will it
generate an OutOfMemoryException? What other approachs are available to me?


Tales Normando
 
Tales Normando said:
I'm writing a program where I need to generate a huge 2D table
(average 10000x5000) and I'm concerned about limitations in the
number of elements and memory space. Is it too big for .NET
standards? Will it generate an OutOfMemoryException? What other
approachs are available to me?

Well, what's the size of each element? If they're just ints, then a
10000x5000 array will only take up about 200 megs - if you've got
enough memory in your computer, that should be fine.

It's hard to know what other approaches are available without knowing
what you need to do with the table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top