Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multi rom zipping + streaming #335

Merged
merged 6 commits into from
Aug 11, 2023
Merged

Fix multi rom zipping + streaming #335

merged 6 commits into from
Aug 11, 2023

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Aug 9, 2023

This PR switches multi-rom zipping to use the stream-zip library. Instead of having to write the entirety of the zip to a temp file then load it into memory, stream-zip allows us to stream 64KB chunks as the zip file generates.

Note: I chose to compress with zip64 since some files may be over zip32's 4GB/file limit. There are some limitations to zip64 support, most notably Safari's auto-extract behaviour. Zip64 is natively supported on most modern OSs.

Fixes #332

@github-actions
Copy link

github-actions bot commented Aug 9, 2023

Test Results

23 tests   23 ✔️  1s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit b0869e7.

♻️ This comment has been updated with latest results.

@zurdi15 zurdi15 self-assigned this Aug 9, 2023
@zurdi15
Copy link
Member

zurdi15 commented Aug 10, 2023

I need to test this with proper big files. Once tested I merge it!

@zurdi15 zurdi15 merged commit e244633 into master Aug 11, 2023
6 checks passed
@zurdi15 zurdi15 deleted the fix-322 branch August 11, 2023 08:15
zurdi15 added a commit that referenced this pull request Aug 27, 2023
Fix multi rom zipping + streaming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Multifiles download not downloading only eating server RAM
2 participants