I have a View Model which contains the state of the object:

 public enum EntityState { Created, Edited, Undefined } 

In my window, I draw about 100-400 visual representations of these VMs. The last programmer has drawn 4 icons, they are simple geometric shapes, filled with different colors. Icons in png format.

The question is, if I take the converter and rewrite it, and instead of a picture I will give Canvas / Path / Polygon / Border, will this affect the performance? And in general, does this optimization make sense? (And is this optimization?)

  • 2
    Performance that is not supported by numbers (profiling, performance counters) is a terrible sin. Take a profiler and when you are surprised that the bottle neck is in a completely different place - remember the story about what the loss seekers are not where they lost, but where it is light. - AK
  • As it turned out at 40t items consumption on canvase 81mb. On Image 74 - ParanoidPanda

0