Memory consumption with XAD and CopyFile
Posted: Fri Feb 26, 2021 4:44 pm
When extracting with the XAD plugin and the CopyFile function, it seems to cache the whole file in RAM before actually writing it to the destination filesystem. This doesn't seem to happen with the same conditions with the Zip plugin (although it has its own issues).
You run out of memory very quick on Amiga compatible systems when trying to extract bigger files/archives. Archives containing ISO CD images require about 1GB of memory, and DVD etc images are just out of the question.
I guess it should buffer it in smaller chunks (not too small either) to RAM and write it more on the fly to the destination.
There I have 260MB file inside the archive, and it will consume 260MB of fast ram while extracting.
You run out of memory very quick on Amiga compatible systems when trying to extract bigger files/archives. Archives containing ISO CD images require about 1GB of memory, and DVD etc images are just out of the question.
I guess it should buffer it in smaller chunks (not too small either) to RAM and write it more on the fly to the destination.
Code: Select all
@REQUIRE "xad", {InstallAdapter = True}
CopyFile("Work:test.zip", "Work:")