Skip to content

[Profiler] Avoid quadratic search for coverage filename in WMO #66053

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

Merged
merged 2 commits into from
May 23, 2023

Conversation

hamishknight
Copy link
Contributor

Previously we were doing a std::find over the files for each coverage mapping, which would be quadratic for WMO. Switch to using a DenseMap instead.

Previously we were doing a `std::find` over the
files for each coverage mapping, which would be
quadratic for WMO. Switch to using a DenseMap
instead.
@hamishknight
Copy link
Contributor Author

@swift-ci please smoke test

@hamishknight hamishknight merged commit 8da1e73 into swiftlang:main May 23, 2023
@hamishknight hamishknight deleted the filing-cabinet branch May 23, 2023 08:00
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