-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
ReturnYouTubeDislike connection statistics. Show client toast messages on RYD connection errors. High priority background threads. #236
Conversation
Can you include benchmark results |
Benchmarking is not precise since it's affected by whatever is going on in the background, how fast YouTube responds for each video, internet connection speed at that moment, etc, etc, etc. Without patch. Loading 20 random videos:
With patch. Loading same 20 random videos:
|
Unsure if there is any improvement, both benchmarks show similar results. |
without the patch, the UI waited 4 out of 20 times. With the patch, it waited 2 out of 20 times. It does not log when the UI did not wait. |
Oh I see, i thought these were samples taken out of the 20. |
Another way to view:
|
app/src/main/java/app/revanced/integrations/returnyoutubedislike/ReturnYouTubeDislike.java
Outdated
Show resolved
Hide resolved
I added logging to the API network calls, and added user viewable statistics if debugging is enabled: Also added a Toast if a connection times out, or if a rate limit is encountered. |
app/src/main/java/app/revanced/integrations/returnyoutubedislike/ReturnYouTubeDislike.java
Outdated
Show resolved
Hide resolved
Changed to minimum of 1 thread on reserve, since right now only RYD uses this pool (which makes only 1 fetch call at a time)
…fetch network calls
…ke/ReturnYouTubeDislike.java [skip ci]
e017af5
to
a240821
Compare
Thanks! |
🎉 This PR is included in version 0.86.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
I changed the background thread pool so all threads run at max priority.
This change seems to reduce the average time needed to load the video UI, as the RYD vote fetch now gets priority over other background threads (the fetch is blocking the UI, it definitely should get priority).
Currently this thread pool is only used by RYD for the fetch votes calls.