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

Performance issues #36

Open
mitrakov opened this issue Nov 10, 2024 · 2 comments
Open

Performance issues #36

mitrakov opened this issue Nov 10, 2024 · 2 comments

Comments

@mitrakov
Copy link

Unfortunately I had to switch to another render library because of perfomance issues with ScrollView. If I try to render several notes with code syntax highlighting inside the ScrollView, the application gets stuck completely.

Code example:

ForEach(notes) { note in         // each "note" contains md text with code block
  HStack {
      MarkdownView(note.data)
          .textSelection(.enabled)
      Spacer()
}
  • MarkdownView: 1.7.0
  • MacOS: 13.6.6
  • Xcode: 15.2
@LiYanan2004
Copy link
Owner

LiYanan2004 commented Nov 10, 2024

@mitrakov I will investigate it soon

@LiYanan2004
Copy link
Owner

LiYanan2004 commented Nov 11, 2024

@mitrakov I cannot reproduce the issue you mentioned. It seems normal.

Can you provide more details on it, things like:

  • How many MarkdownView(s) are rendered in parallel?
  • Did you try lazy-containers to solve performance issue on your side?
  • Have you tried different rendering pipelines via .markdownRenderingThread?

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

2 participants