Keyword 'dynamic' of C#4

Benji Smith dlanguage at benjismith.net
Tue Apr 28 05:01:40 PDT 2009


Unknown W. Brackets wrote:
> I wonder what the overhead times were.  He should've timed them both and 
> listed them separately.  For example, is DynamicMethod a complete win, 
> or is the dynamic keyword cheaper as far as base cost?

Actually, he does. It's at the bottom of the "second look" post:

   Compile Time Bound: 6 ms
   Dynamically Bound with dynamic keyword: 45ms
   Dynamically Bound with MethodInfo.Invoke - 10943ms
   Dynamically Bound with DynamicMethod - 8ms

--benji



More information about the Digitalmars-d mailing list