QB64 Phoenix Edition
What is the maximum size of Bidimensional Array? - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10)
+---- Thread: What is the maximum size of Bidimensional Array? (/showthread.php?tid=1112)

Pages: 1 2


RE: What is the maximum size of Bidimensional Array? - SMcNeill - 11-12-2022

[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?


RE: What is the maximum size of Bidimensional Array? - Pedro - 11-12-2022

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