Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Closed
chitraarasu wants to merge 1 commit into SDWebImage:master from chitraarasu:master

Conversation

Copy link

@chitraarasu chitraarasu commented Jul 10, 2024

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.

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

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.

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)

chitraarasu reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /