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

Fix for Hang Issue: Improving App Performance with Asynchronous Image… #330

Closed
wants to merge 1 commit into from

Conversation

chitraarasu
Copy link

My app hangs when multiple web image loads on the screen using a scroll view, because all the processes run on the main thread. Therefore, I made the load() and cancel() methods asynchronous, separating the tasks to other threads, so the app works smoothly.

@dreampiggy
Copy link
Collaborator

because all the processes run on the main thread

Not actually. Only the render part and query cache happended on main queue, it's by design

@chitraarasu
Copy link
Author

My SwiftUI app hangs after adding WebImage to the screen. I have displayed a list of WebImages in a ScrollView and LazyHStack. I checked the Instrument tool, it displayed app processes on the main thread. After making the load() and cancel() methods asynchronous, my app works smoothly.

@dreampiggy
Copy link
Collaborator

My SwiftUI app hangs after adding WebImage to the screen. I have displayed a list of WebImages in a ScrollView and LazyHStack. I checked the Instrument tool, it displayed app processes on the main thread. After making the load() and cancel() methods asynchronous, my app works smoothly.

Can you provide your xctrace result ? With your App.dSYM and SDWebImageSwiftUI.dSYM is better (to symbolicate the symbols)

You can send me privately via email (not GitHub comment)

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.

3 participants