MSDN TV: CLR Method Dispatch Internals

Joe Duffy and I recently did an MSDN TV stint on Method Dispatch Internals. Joe concentrated on the static end of the spectrum, while I talked about late-bound binding and dynamic calling convention.

I also appeared with fellow Australian Microsofties at the recent Whidbey Ship party. Lots of fun!

Comments

  • Anonymous
    November 05, 2005
    Hi

    I actually already started on LCG, based on your previous blog posts about the subject, but that video is a great introduction also.

    Can you answer me two questions?

    1)I'm using LCG to optimize method calls in a custom Rpc framework, but I've stumbled across a problem with generic methods. Is it possible to generate a method using LCG that receives a type array and calls a generic method with those type parameters? I mean to replace code like this:

    MethodInfo method;
    object[] parameters;
    Type[] type_parameters;
    method.MakeGenericMethod(type_parameters).Invoke(parameters);

    with

    DynamicMethod dm = SomeMethodThatGeneratesAGenericDynamicMethod(method);
    dm.Invoke(null, new object[] { type_parameters, parameters)});


    2) Is there a performance difference between DynamicMethod.Invoke and DynamicMethod.CreateDelegate and then later calling the delegate?

    Best regards,
    Gustavo Guerra

  • Anonymous
    November 27, 2007
    PingBack from http://feeds.maxblog.eu/item_1328754.html

  • Anonymous
    May 31, 2009
    PingBack from http://woodtvstand.info/story.php?id=14222