-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
NET 8.0 Preview 7 Performance Regression: ActivatorUtilities.CreateInstance #91186
Comments
cc: @steveharter |
Tagging subscribers to this area: @dotnet/area-extensions-dependencyinjection Issue DetailsDescriptionI was checking new behavior for "ActivatorUtilities.CreateInstance" in NET 8.0 and noticed some perfomance regression when invoked for class with not empty construcor, as i can see something changed between "Preview 6" and "Preview 7", it's slighly better in last daily build "rc.2.23426.4" but still much worse than NET7.0 .
Configuration
Regression?Data
|
Currently verifying this issue to see if same as reported in #89104 |
This is a regression from the "keyed services" feature due to reading custom attributes. In this case, it is the |
Using a dictionary to hold the 7.0:
8.0:
After:
|
Setting to v9; will get feedback on whether to port to v8. |
I think it'd be good to fix this for 8. |
Reopening to track backport. |
Closing; fixed in backport |
Description
I was checking new behavior for "ActivatorUtilities.CreateInstance" in NET 8.0 and noticed some perfomance regression when invoked for class with not empty construcor, as i can see something changed between "Preview 6" and "Preview 7", it's slighly better in last daily build "rc.2.23426.4" but still much worse than NET7.0 .
Configuration
Regression?
Data
The text was updated successfully, but these errors were encountered: