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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Maximum Number of Attachments per Thread Magdha 7 464 01-13-2026, 10:13 AM
Last Post: Magdha
  Font Size in Threads Dimster 5 372 12-12-2025, 04:49 PM
Last Post: Dimster
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,070 11-10-2025, 07:23 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 218 10-26-2025, 06:58 PM
Last Post: madscijr
  getting the number of dimensions in an array on the fly? madscijr 7 738 09-16-2025, 12:34 AM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)