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

refactor: reduce memory usage for downloads #197

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

R1kaB3rN
Copy link
Member

@R1kaB3rN R1kaB3rN commented Oct 3, 2024

Currently, we're downloading and extracting the Proton and the Steam Linux Runtime archives in parallel within the tmpfs, which can utilize over 1GB+ of volatile memory in the process. Given the nature of this program and the likelihood that those resources will only become larger in the future, doing this is both unreasonable and problematic. In the worst case, this may cause the launcher to crash if the user's system does not have sufficient space at the tmpfs or root directory.

This PR changes this process so umu-launcher downloads the files in the tmpfs, but performs the decompression, extraction, and move steps within the user's home directory at $HOME/.cache/umu within a temporary directory.

@R1kaB3rN R1kaB3rN marked this pull request as ready for review October 3, 2024 21:16
@R1kaB3rN R1kaB3rN merged commit cd8ccd7 into Open-Wine-Components:main Oct 3, 2024
6 checks passed
@R1kaB3rN R1kaB3rN deleted the lower-memory-usage branch October 3, 2024 21:30
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.

1 participant