Cook Computing

Dynamic Invocation in VB

June 6, 2004 Written by Charles Cook

Just came across a posting by Cameron Beccario on The Anatomy of a Late Bound Expression, describing how methods are dynamically invoked in VB.NET. Its obvious from this why dynamic invocation is so much slower than static invocation in VB.NET. I've lost the reference now but I remember reading a discussion about the performance of the Java-based scripting language Groovy which uses dynamic invocation and as a result has much slower method calls than Java. There was some talk of using type inference to compile method calls statically where possible, which is what Nemerle appears to do.