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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top