-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ServiceDescriptorExtensions.cs #553
Conversation
twenzel
commented
Oct 5, 2020
- Improve performance due to less reflection
- Prevent runtime errors when renaming RegistrationAdapter.FromServiceDescriptor method
- Improve performance due to less reflection - Prevent runtime errors when renaming RegistrationAdapter.FromServiceDescriptor method
Nice @twenzel. Thanks |
Why not just use a generic type registration? I've raised #555 to consider instead of this. |
src/Castle.Windsor.Extensions.DependencyInjection/Extensions/ServiceDescriptorExtensions.cs
Outdated
Show resolved
Hide resolved
Hi @jonorossi i agree with this change |
@jonorossi i did not see changes on #555 and #553 to be mutually exclusive, but I see now that they are. Thanks for pointing this out to me! @twenzel @robertcoltheart thoughs to which PR is best performance-wise? I would think #555 has most potential? |
I mean, reflection is always going to be slow. I haven't benchmarked either change to see which is faster though. |
@twenzel @robertcoltheart I think we should remove reflections. But that is just an opinion. Maybe you guys can decide? |