When I try to extract bigger files with the Zip plugin and CopyFile, extracting gets slower and slower when the extracted file is bigger. The furter it advances, the slower it gets... the first 10 megabytes may get quickly enough that you don't notice it, but then it just slows down and finally crawls to get new bytes extracted.
For example, I have a test archive with a single 260 MB ISO file inside it.
If I unpack it with this way:
Code: Select all
@REQUIRE "zip", {InstallAdapter = True}
zip.OpenArchive(1, "Work:test.zip")
zip.ExtractFile(1, 0, "ram:test.iso")
It takes about 8 seconds... fair enough.
But then if I try to extract it like this:
Code: Select all
@REQUIRE "zip", {InstallAdapter = True}
CopyFile("Work:test.zip", "ram:")
It just takes ages... I waited for 10 MINUTES and it still wasn't extracted even half of the file! I don't know how long it would have taken to wait it to finish.. maybe half hour, maybe whole hour.
For comparison, the XAD plugin extracts it in 13 seconds with the CopyFile function.