-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PublishTrimmed build time regression. #40060
Labels
Comments
@sebastienros is it possible to collect and provide binlogs for these test runs? That would be the minimum to do any analysis here. |
I used a different machine with less cores and it was actually quicker. Still noticeable difference. |
@sbomer @jtschuster - probably some of the recent changes. |
jtschuster
added a commit
to dotnet/runtime
that referenced
this issue
Apr 12, 2024
The _virtual_methods cache had duplicates due to the Scope item in the tuple, which made ProcessVirtualMethods do significantly more work. This PR makes the cache a dictionary, with TryAdd's instead of Add to only add each method once. These changes made caused the overrides cache in TypeMapInfo to be modified during iteration, so a for loop is used instead of a foreach loop. This should be find since the list will always be append-only. I noticed we copy _typesWithInterfaces to an array for the same reason, though since that's also append-only we can iterate with a for loop there, too. Fixes dotnet/sdk#40060.
matouskozak
pushed a commit
to matouskozak/runtime
that referenced
this issue
Apr 30, 2024
The _virtual_methods cache had duplicates due to the Scope item in the tuple, which made ProcessVirtualMethods do significantly more work. This PR makes the cache a dictionary, with TryAdd's instead of Add to only add each method once. These changes made caused the overrides cache in TypeMapInfo to be modified during iteration, so a for loop is used instead of a foreach loop. This should be find since the list will always be append-only. I noticed we copy _typesWithInterfaces to an array for the same reason, though since that's also append-only we can iterate with a for loop there, too. Fixes dotnet/sdk#40060.
Ruihan-Yin
pushed a commit
to Ruihan-Yin/runtime
that referenced
this issue
May 30, 2024
The _virtual_methods cache had duplicates due to the Scope item in the tuple, which made ProcessVirtualMethods do significantly more work. This PR makes the cache a dictionary, with TryAdd's instead of Add to only add each method once. These changes made caused the overrides cache in TypeMapInfo to be modified during iteration, so a for loop is used instead of a foreach loop. This should be find since the list will always be append-only. I noticed we copy _typesWithInterfaces to an array for the same reason, though since that's also append-only we can iterate with a for loop there, too. Fixes dotnet/sdk#40060.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not happening with all applications. Reproduced on Windows and Linux.
Between SDKs (installer) 9.0.100-preview.2.24112.28 and 9.0.100-preview.2.24113.7
Before:
After
The text was updated successfully, but these errors were encountered: