Performance of handling WndProc

  • Thread starter Thread starter iamnader
  • Start date Start date
I

iamnader

Hi,

Has anyone done any performance analysis of handling WndProc in C#? It
seems like there must be significant overhead in jumping between native
code and the CLR for every single Windows message.

Thanks,
Nader
 
Nader,

There probably is, but every windows control does it, for the most part.

Are there specific issues you are seeing with a control, or is it a
general concern?
 
Hi,

Has anyone done any performance analysis of handling WndProc in C#? It
seems like there must be significant overhead in jumping between native
code and the CLR for every single Windows message.

Thanks,
Nader

I'm not clear on what you mean by "jumping between native code and the CLR",
what makes you think that there is any jumping to the CLR and from the CLR
when a message arrives in the message queue?

Willy.
 
I misunderstood. I didn't realize all controls handle the message.
Makes sense as you have to override it.
 
When I first heard of "wndproc in C#" I also thought "oh something from
unmanaged world, wow" :-)

Ab.
 
Back
Top