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

検索時の画像取得方法改善 #6

Open
inushima opened this issue Sep 15, 2022 · 0 comments
Open

検索時の画像取得方法改善 #6

inushima opened this issue Sep 15, 2022 · 0 comments

Comments

@inushima
Copy link

inushima commented Sep 15, 2022

CollecitonViewのCellにbindする都度、画像を取得している関係で、スクロール動作にもたつきが発生している。

* 画像取得をバックグラウンドスレッドで行う

対応1. UICollectionViewDataSourcePrefetchingを使う

https://mgre.co.jp/blog/10490

対応2. 画像キャッシュライブラリ(Nuke)を使う

https://qiita.com/uhooi/items/77a0eee4a09280679187
https://github.com/kean/Nuke#h_design

対応1と2の組み合わせ、または2のみでも改善されるはずです。

@inushima inushima changed the title WIP: 検索時の画像取得方法改善 検索時の画像取得方法改善 Sep 21, 2022
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

No branches or pull requests

1 participant