-
Notifications
You must be signed in to change notification settings - Fork 678
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
TextBox performance issue (load times ~5x slower compared to WPF) #3336
Comments
@bartekk8 as FYI |
I have checked performance in Preview 3. See my results below
Sample projects: |
This assumption isn't going to be universally true:
While of course there is a desire to make WinUI3 the clear choice, the reality is that while the project is in transition there are going to be gaps. The closer comparison is going to be against UWP XAML rather than WPF, as WinUI3's origins are in UWP XAML. It'd be helpful to see a comparison of this scenario against UWP XAML to see if the increase is coming as a a result of WinUI3 or from WPF->UWP. As in is this a recent regression or a gap that needs to be closed with what WPF had. Totally agree that TextBox performance is important and that apps with many TextBoxes should be viable. Just trying to correct assumptions that WinUI3 will be able to immediately meet/exceed those targets. There may be a bug here, or there may be something more substantial that's accrued over the years that needs to be analyzed. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
While investigating WinUI 3 Desktop performance I found that WinUI 3 TextBox seven times slower than in WPF. At first i thought that this is a well known bug with dependency property and marshalling however textblock is faster than in wpf.
Describe the bug
The text box default template is too heavy, even with some elements loading on demand. Maybe it fast enough to touch-oriented apps when you have one or two text boxes on the form, but its too slow for LOB applications when you can have hundreds. Also, it is a building block for another more complex text editors, so it performance is extremelly important.
I tried to simplify it template by removing all unnecesary elements except the scrollviewer with textboxview (you can look at it in the attached winui project), even so, textbox is slower several times than in wpf.
This bug is crucial for us. TextBox is a basic building block of any application. If we cant reach better performance than in predesessor, attracting new customers from previous platforms can be dificult.
Steps to reproduce the bug
App11.zip
WpfApplication13.zip
Expected behavior
WinUI 3 should be faster than wpf
Version Info
Package version 3.0.0-preview2.200713.0
AppModel WinUI 3 Desktop
OS Name Microsoft Windows 10 Enterprise
OS Version 10.0.19041 N/A Build 19041
The text was updated successfully, but these errors were encountered: