danielpalme / IocPerformance

Performance comparison of .NET IoC containers
https://danielpalme.github.io/IocPerformance
Apache License 2.0
881 stars 157 forks source link

Removing runtime reflection from StilettoContainerAdapter #18

Closed benjamin-bader closed 11 years ago

benjamin-bader commented 11 years ago

Replacing the MakeGenericMethod mechanism with hard-coded type comparisons. Resolvable types are hard-coded anyways in the same file, so there's no need to be so general. Additionally, the runtime reflection ended up multiplying the time taken by an order of magnitude, so this implementation is a more accurate 'reflection' of Stiletto's performance profile in the typical use case.