-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Conversation
@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test |
Interesting error on Windows_NT arm; happened previously (before triggering a retest which failed same way)
|
@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test |
|
|
To avoid this regression - mark |
Yep, only going 50% readonly
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
For dotnet/wpf#94 a big chunk is in the Though I don't know if its easy to gain anything there. |
cc @steveharter |
This is a combination of:
While improving 2., 3. or 4. may help somewhat, it won't really make the problem go away. (1) is the root cause of the problem. Similar designs are known to scale poorly and always turn into performance bugs (and sometimes correctness or security bugs too). It is where the fix needs to be to make the problem go away. E.g. it can an option that allows you to specify the explicit list of assemblies/types that the Xaml parser needs to worry about. |
Ah yes, looking at the startup costs for EventSources in ASP.NET https://github.com/dotnet/corefx/issues/34283#issuecomment-451015598; Callers Callees |
I think |
|
@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test |
* Reduce local scopes in AddCustomAttributes * CustomAttribute.cs tidy up * Less struct copies
* Reduce local scopes in AddCustomAttributes * CustomAttribute.cs tidy up * Less struct copies Commit migrated from dotnet/coreclr@e5cb6c3
Contributes to dotnet/wpf#94
Contributes to https://github.com/dotnet/corefx/issues/34283#issuecomment-451015598
Originally started as reducing local scopes in
AddCustomAttributes
(moving declaration and assignment closer to use; to decrease lifetime) (First commit a43f3d2)Then tidied up the rest of the file while I was there (Second commit 996bed3)
Including making the following structs readonly
CustomAttributeNamedArgument
,CustomAttributeTypedArgument
,CustomAttributeEncodedArgument
,CustomAttributeNamedParameter
,CustomAttributeCtorParameter
,CustomAttributeType
,Final commit
Commit 2
Commit 3
Commit 4