guinget icon indicating copy to clipboard operation
guinget copied to clipboard

Use Robocopy and 7zip (or maybe RecursiveExtractor?) to speed up cache updates.

Open DrewNaylor opened this issue 4 years ago • 3 comments

This'll require something that closes the child processes when the main form closes if the user closes it before it's done. Something here might help: https://stackoverflow.com/questions/3342941/kill-child-process-when-parent-process-is-killed

DrewNaylor avatar Mar 12 '21 22:03 DrewNaylor

For now this won't be used as there have been major performance improvements already by extracting only manifests and moving the resulting folder instead of copying it. Might use this eventually if it's still too slow.

DrewNaylor avatar Jun 18 '21 11:06 DrewNaylor

Or, maybe RecursiveExtractor's library could work: https://github.com/microsoft/RecursiveExtractor

This is under the MIT license, so it should be fine. Hopefully it can be used.

DrewNaylor avatar Jan 03 '23 08:01 DrewNaylor

Update: just found this SO answer that mentions counting the compressed file size rather than using the file index, which apparently can speed things up: https://stackoverflow.com/a/61901480 From this link: https://stackoverflow.com/questions/61889156/system-io-compression-counting-the-number-of-files-using-zipfilearchive-is-ver

start of the post left half of the code right half of the code end of the post

Maybe I should try multi-threading with an option to turn it off if needed as well as a choice for the user to pick how many threads are used at a time maximum, or maybe not if it works just fine in a single-core VM?

DrewNaylor avatar Jan 03 '23 08:01 DrewNaylor