-
-
Notifications
You must be signed in to change notification settings - Fork 407
feat: Optimize download performance for external storage #1785
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
Changes from all commits
a80ba1f
1f9f470
815acd1
94997fc
690827d
29aa350
aed5597
2179580
d205b88
f43c1e1
7d00f17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @joshuatam - are the changes in this file improving the speed as well? If not I think we should undo it. If it is for fixing GOG, we can fix the issue in GOGDownloadManager.kt:937 - set the status without the separate setProgress call so a chunk costs one emit. Thoughts?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It is needed as DownloadInfo changed the way to emit progress. If you check DownloadsViewModel.kt carefully, the same getStatusMessageFlow() is consuming twice, together with the same call in LibraryAppScreen, there are totally 3 locations listen to the same progress. Changing to listener pattern can make the UI smooth and reduce the chance on updating the same UI elements simultaneously in DownloadsViewModel.kt (could be somehow causing ANR) If you concern about the mention in this https://github.com/utkarshdalal/GameNative/pull/1785/changes/BASE..7d00f1758010abaeb4a294a411d20594498bcf12#r3695608006. |
Uh oh!
There was an error while loading. Please reload this page.