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

解决主线程扫描数据耗时问题 #1332

Merged
merged 2 commits into from
Nov 12, 2019
Merged

Conversation

lixiang1994
Copy link
Contributor

主线程扫描渐进式数据改为子线程串行队列中处理 通过信号量在主线程获取onShouldApply状态

@onevcat
Copy link
Owner

onevcat commented Nov 1, 2019

I am not sure but maybe changes here already covered this? https://github.com/onevcat/Kingfisher/pull/1310/files

@lixiang1994
Copy link
Contributor Author

@onevcat https://github.com/onevcat/Kingfisher/pull/1310/files只是将所有操作移到了主线程, 但扫描数据属于耗时操作, 我的建议是依旧在子线程处理数据, 通过信号量在主线程获取onShouldApply状态, 这样就可以保证不会对主线程造成太多影响.

@onevcat onevcat merged commit f0db21f into onevcat:master Nov 12, 2019
skoduricg pushed a commit to rentpath/Kingfisher that referenced this pull request Sep 24, 2021
解决主线程扫描数据耗时问题
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.

2 participants