Skip to content

Is C++/WinUI faster than C#/WinUI? #10328

Answered by DarranRowe
ghost1372 asked this question in Q&A
Discussion options

You must be logged in to vote

The one biggest advantage in all cases is the size. C++/WinRT is a set of templates, so the compiler is able to optimise and inline the heck out of the code.

With the default layouts, the majority of the size is actually WebView2. The Visual C++ runtime is available as a framework package, so it doesn't have to be distributed as part of the package, and is therefore only referenced as a dependency. What's more, if you are willing to do a small amount of extra work, it is possible to completely remove the Visual C++ runtime dependency, but there needs to be a certain amount of caution taken in this case because it is a partial static build. This makes the executable slightly larger though.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ghost1372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants