How to speed up WPF programs? How to speed up WPF programs? wpf wpf

How to speed up WPF programs?


  1. How do you speed up WPF?

    Often after using one of the following profiling tools it is obvious what is causing my bottlenecks.

    • If memory is the issue then I virtualize my data.
    • If render time is the issue then I virtualize the controls or simplify control templates where possible.
    • If processing time is the issue I try to improve my algorithm or move that work to a background thread and show a throbber in my ui while the work is going.

  2. How do you profile bottlenecks?

  3. How do you deal with the slowness?

    Profiling and counseling.


Install SP1... Loads of very cool performance increases for WPF!!!

Read more here

Here is a example of 2 enhanchements made in SP1: Deffered scrolling & UI Element recyceling!!!


I can not add comments, that's why I post a new answer to this: I've found this video from the pdc09 that gives some ideas about how to profile wpf apps and because it helped me lot, I want to share the link:

Advanced WPF Application Performance Tuning and Analysis