1

Topic: Why is reflection slow?

http://mattwarren.org/2016/12/14/Why-is … tion-slow/

2

Re: Why is reflection slow?

Hello, VladD2, you wrote: VD> http://mattwarren.org/2016/12/14/Why-is … tion-slow/ It would be interesting, if in IL Emit it  Func <object, object> that comparing "IL Emit" vs "Expression Trees" was correct. Though lag already in 4 times is all the same not clear.

3

Re: Why is reflection slow?

Hello, Jack128, you wrote: J> It would be interesting, if in IL Emit it  Func <object, object> that comparing "IL Emit" vs "Expression Trees" was correct. Though lag already in 4 times is all the same not clear. There there is no lag, there the code different, in comments under the link .

4

Re: Why is reflection slow?

Hello, Sinix, you wrote: S> Hello, Jack128, you wrote: J>> It would be interesting, if in IL Emit it  Func <object, object> that comparing "IL Emit" vs "Expression Trees" was correct. Though lag already in 4 times is all the same not clear. S> there there is no lag, there the code different, in comments under the link . Difference Emit' from Trees only in a caste string-> object. Entering object to TestClass  both variants. And so and not clearly, as castes of a line to object ( for such castes at level  the code generally should disappear) so strongly productivity influences

5

Re: Why is reflection slow?

Hello, Jack128, you wrote: J> Difference Emit' from Trees only in a caste string-> object. Entering object to TestClass  both variants. And if at the code to look?

6

Re: Why is reflection slow?

Hello, Sinix, you wrote: S> Hello, Jack128, you wrote: J>> Difference Emit' from Trees only in a caste string-> object. Entering object to TestClass  both variants. S> and if code to look? And. In the code writes one, in article describes absolutely another. Happens. Though all the same, (we speak about the code on ) not clearly then, why emit in 1,5 times more slowly the delegate.

7

Re: Why is reflection slow?

Hello, VladD2, you wrote: VD> http://mattwarren.org/2016/12/14/Why-is … tion-slow/ Any bosh in measurements. What for to transfer object, instead of statically known type. What for was  the left libraries if IL it is absolutely easy to write property derivings directly.

8

Re: Why is reflection slow?

So why slowly? What in attempt "to be secured against all and all" was heaped up a lot of by the unnecessary code? Well, considering, what space architects there work, is not surprised - one WPF that costs! And here in D is traits, the same reflection, but compile time. But it is necessary for nobody, "  crude,  , I   to do, a-a-a-!".

9

Re: Why is reflection slow?

Hello, hardcase, you wrote: H> Any bosh in measurements. What for to transfer object, instead of statically known type. What for was  the left libraries if IL it is absolutely easy to write property derivings directly. Castes of object from a class not expensive occupation, and library is used only at initialization. But shortly and beautifully it turned out.

10

Re: Why is reflection slow?

Hello, Kolesiki, you wrote: K> And here in D is traits, the same reflection, but compile time. But it is necessary for nobody, "  crude,  , I   to do, a-a-a-!". The Same hogwash and Nemerlom. Language not that system. 1. Not from Microsoft. 2. There is no community because item 1.