dotnet / dotnet/wpf

High memory pressure created by TextBlocks

Open
#5,138 0 comments 4 reactions 0 assignees View on GitHub
Performance
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

![image](https://user-images.githubusercontent.com/20905599/130325806-afe4d9e0-cd79-46c5-b598-18040e9abe96.png)
![image](https://user-images.githubusercontent.com/20905599/130325857-3dc8aadf-daff-42e3-a368-7c215a13fa5f.png)

When scrolling through GridViews with lots of TextBlocks there is alot of stutter caused by GC.

Minimal example to reproduce this:
Run the following program and scroll up and down
[TextblockPerformance.zip](https://github.com/dotnet/wpf/files/7025694/TextblockPerformance.zip)

This example is extreme but it isolates the issue that also appears in more reasonable situations.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.