Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the maximum size of Bidimensional Array?
#11
[Image: image.png]


Click on the image above and you can see the memory required.  3 ^ 10 by 3 ^ 10, in nibbles, is 2GB of memory -- your program certainly wouldn't run on any 32-bit OS, and may not run on 64-bit systems unless they have a decent amount of ram in them.  (Bargain PCs with 4GB ram wouldn't work very well at all, I don't imagine, as the OS needs memory for itself, as well as any other apps/services in the background.)

Is there any chance you could store the data on the drive instead, and access it via GET/PUT, rather than trying to access it all in memory at once?
Reply
#12
Hello, thanks for the answer.

3^10, It is possible with 8gb of ram, linux 64 bits, I can load it without problem in my computer.

Thanks for the suggestion to store on hard disk in file and access with PUT and GET, maybe 3^14, and on a SSD M.2 I can gain speed.

But I think I have to chunk the problem in another way, working with smaller arrays.

Thank you

Pedro
Reply




Users browsing this thread: 2 Guest(s)