02-29-2024, 05:05 PM
I've got some database files which I routinely work with that are around 7GB in size.
Those can't be loaded into a string, but you can reserve memory for them and load them into a _MEMNEW block, as long as you load them in "chunks" until that block is fully filled. That is:
1) Provided you're on a 64-bit machine. 32-bit limits you to about 1.5GB max file size. (It claims 2GB, but every file has to reserve some overhead for the OS.)
2) Provided you have more than that amount of memory on your system.
3) Provided that taking that much memory from your system doesn't steal resources from other things and brick up your machine until you reboot.
Those can't be loaded into a string, but you can reserve memory for them and load them into a _MEMNEW block, as long as you load them in "chunks" until that block is fully filled. That is:
1) Provided you're on a 64-bit machine. 32-bit limits you to about 1.5GB max file size. (It claims 2GB, but every file has to reserve some overhead for the OS.)
2) Provided you have more than that amount of memory on your system.
3) Provided that taking that much memory from your system doesn't steal resources from other things and brick up your machine until you reboot.