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

ViewPager2 performance regressions #965

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Conversation

UweTrottmann
Copy link
Owner

@UweTrottmann UweTrottmann commented Jan 10, 2024

ViewPager2 performance is really bad. Doing a quick trace shows the issue is layouts getting inflated a lot. Maybe this can be tweaked by parameters?

  • offscreenPageLimit = 1 improves things a bit, but still not even close to v1 performance.

This experimentally switches the episode pager back to the v1 implementation as the v2 one is not really actively developed despite promises. Were there any issues that warranted switching to v2 (e.g. when the amount of pages changed)?

This will probably re-introduce bugs when the number of episodes changes
(?), but this is worth the trade-off of much better paging performance.
@UweTrottmann UweTrottmann force-pushed the viewpager2-perf-regressions branch from 6d61534 to 6af22f6 Compare January 12, 2024 07:49
@UweTrottmann
Copy link
Owner Author

Switching back. Not seeing any reason to stick with v2 and the paging performance is just so much better.

@UweTrottmann UweTrottmann added this to the SeriesGuide 71 milestone Jan 12, 2024
@UweTrottmann UweTrottmann merged commit 6af22f6 into dev Jan 12, 2024
5 checks passed
@UweTrottmann UweTrottmann deleted the viewpager2-perf-regressions branch January 12, 2024 09:47
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