Has Object in VB 2010 received the same optimalization as dynamic in C# 4.0?

Posted by Abel on Stack Overflow See other posts from Stack Overflow or by Abel
Published on 2010-04-13T09:29:47Z Indexed on 2010/04/13 9:33 UTC
Read the original article Hit count: 237

Some people have argued that the C# 4.0 feature introduced with the dynamic keyword is the same as the "everything is an Object" feature of VB. However, any call on a dynamic variable will be translated into a delegate once and from then on, the delegate will be called. In VB, when using Object, no caching is applied and each call on a non-typed method involves a whole lot of under-the-hood reflection, sometimes totaling a whopping 400-fold performance penalty.

Have the dynamic type delegate-optimization and caching also been added to the VB untyped method calls, or is VB's untyped Object still so slow?

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about vb.net-2010