3 ms·
> I've found the DLR is just as fast... with a much lower overhead Can you expand on this? I would not have expected that it would be faster than compiled exp
by zastrowm 9y ago
> I've found the DLR is just as fast... with a much lower overhead
Can you expand on this? I would not have expected that it would be faster than compiled expressions.
- duncans 9y agoDynamic calls gets compiled at runtime, so there's an initial hit (as there would be with Expr.Compile) but after that ...
- zamalek 9y agoThe codegen creates a cache of delegates (created using expression trees), but uses a structure more suited to the problem than a simple ConcurrentDictionary. [1]: http://geekswithblogs.net/simonc/archive/2012/07/20/inside-the-dlr---callsites.aspx http://geekswithblogs.net/simonc/archive/2012/07/20/inside-t...
- zastrowm 9y agoAh, faster than the `ConcurrentDictionary`. That makes sense!