Skip to content
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

Use HashSet instead of List for _virtual_methods #2976

Merged
merged 2 commits into from
Aug 16, 2022

Conversation

jtschuster
Copy link
Member

We can use a HashSet instead of a List for _virtual_methods to avoid having duplicates that cause a slowdown.

This change speeds up my repro of #2975 to speeds similar to the commit before the issue.

Copy link
Member

@sbomer sbomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@jtschuster jtschuster enabled auto-merge (squash) August 16, 2022 00:33
@jtschuster jtschuster merged commit 6252a21 into dotnet:main Aug 16, 2022
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
* Use a HashSet instead of List for MarkStep._virtual_methods

Commit migrated from dotnet/linker@6252a21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants