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

TextMetrics+FullTextLine.Dispose() gets slower over time until a GC #10199

Open
seanhalliday opened this issue Dec 21, 2024 · 1 comment
Open
Labels
📭 waiting-author-feedback To request more information from author. Needs minimal repro project

Comments

@seanhalliday
Copy link

I have working on some optimizations to some of our controls to make scrolling faster and I noticed that while scrolling it initially was fast but the more I used it, the more laggy it became. When I profiled with dotTrace it showed that FullTextLine.Dispose() was taking more time. If I force a GC.Collect I get speed back and FullTextLine.Dispose is fast again. Unfortunately this calls into PresentationNative.LoDisposeLine which is not open source so I am unable to determine why it gets slower.
Is there a workaround or a method I can call (even via reflection) that would trigger whatever GC.Collect is triggering?

@himgoyalmicro
Copy link
Contributor

@seanhalliday Do you have a sample repro for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📭 waiting-author-feedback To request more information from author. Needs minimal repro project
Projects
None yet
Development

No branches or pull requests

2 participants