archive icon indicating copy to clipboard operation
archive copied to clipboard

archive() listing files and folders from online archive takes as much time as for downloading it

Open pakom opened this issue 10 months ago • 0 comments

This is related to #85.

When listing the files and folders in an archive on the web using the archive() function, the time spent is the same as for downloading the archive. Consider the following:

library(archive)

options(timeout = 500000000000000000000000)

archive(file = "https://iea.nl/sites/default/files/data-repository/TIMSS/TIMSS2019/TIMSS2019_IDB_SPSS_G8.zip")

The time taken to list the files and folders in the archive is close to 10 minutes, the same time is needed to download the entire ZIP.

The issue in #85 (now closed after PR #94 from @allenluce, thank you once again) was the same. I don't speak C++, but I guess similar approach can be used to fix this one.

pakom avatar Apr 22 '24 11:04 pakom