How to speed up WPF programs?
Posted
by Sam
on Stack Overflow
See other posts from Stack Overflow
or by Sam
Published on 2008-10-21T14:24:59Z
Indexed on
2010/06/01
20:33 UTC
Read the original article
Hit count: 680
I love programming with and for Windows Presentation Framework. Mostly I write browser-like apps using WPF and XAML.
But what really annoys me is the slowness of WPF. A simple page with only a few controls loads fast enough, but as soon as a page is a teeny weeny bit more complex, like containing a lot of data entry fields, one or two tab controls, and stuff, it gets painful.
Loading of such a page can take more than one second. Seconds, indeed, especially on not so fast computers (read: the customers computers) it can take ages.
Same with changing values on the page. Everything about the WPF UI is somehow sluggy.
This is so mean! They give me this beautiful framework, but make it so excruciatingly slow so I'll have to apologize to our customers all the time!
My Question:
- How do you speed up WPF?
- How do you profile bottlenecks?
- How do you deal with the slowness?
Since this seems to be an universal problem with WPF, I'm looking for general advice, useful for many situations and problems.
Some other related questions:
© Stack Overflow or respective owner