Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Performance Improvement - IsGenericTypeDefinedBy #1038
I've changed the
It's used quite a lot, and this change reduces allocations to zero and generally improves performance of the method. It's called quite a lot, so hopefully this will help a little with a few of the generic IoC paths.
I've not added it to the formal benchmark project because it's a bit niche, but I've put the benchmark in a gist if you want to check it: