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
Thumbnail changes update the tabs tray too often #7313
Comments
Possible duplicates/fallout: |
I verified that removing the In mozilla-mobile/fenix#11185 (comment), I mentioned we should try to use the
What changes though is the surface area of this API for the consumer to load the thumbnails where ever the caller needs. More concretely, the |
We were seeing odd bugs and performance issues from trying to map the disk cache into the TabsTrayPresenter. A better solution, would be to load the thumbnails straight from the cache, and incremental updates via the store.
We were seeing odd bugs and performance issues from trying to map the disk cache into the TabsTrayPresenter. A better solution, would be to load the thumbnails straight from the cache, and incremental updates via the store.
We were seeing odd bugs and performance issues from trying to map the disk cache into the TabsTrayPresenter. A better solution, would be to load the thumbnails straight from the cache, and incremental updates via the store.
We were seeing odd bugs and performance issues from trying to map the disk cache into the TabsTrayPresenter. A better solution, would be to load the thumbnails straight from the cache, and incremental updates via the store.
7356: Issue #7313: Use ThumbnailLoader for the TabViewHolder r=gabrielluong,boek a=jonalmeida Instead of trying to inline the thumbnail images from disk into the TabsTrayPresenter, we can load them from the `ThumbnailStorage` via the `ThumbnailLoader` and rely on the `TabsTrayPresenter` to consume new thumbnail updates only from the store. This fixes some perf issues, inconsistencies, and duplicate updates to the tabs tray. Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
When we update the tabs tray, we use the
generationId
from the bitmap to identify if the thumbnails have changed. It turns out that these are not stable (probably because we're compressing the images so the ID changes).We need a better way to avoid the whole tray from updating when we have a thumbnail update.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: