Only for the CLR Geeks

For those true CLR geeks — you will love this MSDN TV spot with Joe and Joel talking about CLR Method Dispatch.  Let us hear what you think about it.. and what other topics we should cover…


Comments (3)

  1. Smith says:

    Nice information brad! but my concern is What about the CLR Performance on Dynamic Method Invocation(Dynamic Method – Delegate Invoke)???

  2. MSDN Archive says:


    If you’re question is asking "What is the approximate performance of invoking a dynamic method with a delegate" then it’s the cost of a delegate call, plus the cost of the IL emitted. So if you have a simple "call" IL instruction in your DM, then the cost is delegate call + call instruction. Pretty cheap.

    As it turns out, the IL will probably need to have some logic for tests: check to see if the callsite has the same number of arguments and the receiver, check that the types of each argument matches that of the parameter and coerce if it doesn’t match, etc etc. That costs a little extra too.

    In the end, do what RicoM does – measure measure measure 🙂