News for hackers. Stuff that matters.
Re:Why is .NET reflection slow? by dfkf on Saturday December 17, 2016 @07:04AM (#13200385)
Generic code working with reference types can be shared, but passing structs for generic parameters forces JIT compiler to generate separate instances of generic methods or classes for each combination of structs. From there inlining becomes trivial. But yes, being able to pull stuff like this is one of the cooler parts of .NET.

There are no comments on this comment yet.