On Wed, Aug 28, 2013 at 10:47 AM, David Jeske <[email protected]> wrote:

> On Wed, Aug 28, 2013 at 9:36 AM, Jonathan S. Shapiro <[email protected]>wrote:
>
>>
>> Only the fact that delegate performance in CLR is horrible.
>>
>
> Are delegates not eventually PIC inlined?
>

David, you have a *crazy* optimistic notion of what level of optimization
is done by the JIT in CLR.

Delegates cannot be inlined easily, because they are potentially mutable
on-heap structures. The inlining itself is simple. The analysis required to
determine that the inlining doesn't break the semantics is harder.

The whole reason that delegates *exist* is that CLR doesn't provide direct
support for closures. It's really annoying.
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to