Skip to content

Conversation

@medallyon
Copy link
Contributor

This PR optimizes how directory downloads work. On my relatively low-end machine that hosts bewcloud, I often encounter crashes with the new download feature due to running out of memory. This implements a streaming mechanism for directory downloads, so even multi-gigabyte directories can be downloaded without issue. It also improves the UX because browsers now instantly display the download progress (see screenshot).

image

Copy link
Member

@BrunoBernardino BrunoBernardino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @medallyon ! I understand the improvements (not to lib/config.ts), but do not want to add a dependency which has a big potential for vulnerabilities just for this small benefit, I'm afraid.

If you can get these improvements from zip directly and "regular" IO streams (which I believe you can), I'd accept that.

@medallyon
Copy link
Contributor Author

That makes sense, I'll look into the proposed changes 👍

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.

2 participants