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

refactor: use an unordered set for interned paths #2893

Merged
merged 1 commit into from
May 16, 2024

Conversation

Conaclos
Copy link
Member

Summary

Use an unordered hash map instead of an ordered hash map for path interning.

Test Plan

CI must pass.

@github-actions github-actions bot added A-CLI Area: CLI A-Core Area: core labels May 16, 2024
@ematipico
Copy link
Member

What's the benefit of using an unordered list in this case? Should we see some perf gains?

@Conaclos
Copy link
Member Author

What's the benefit of using an unordered list in this case? Should we see some perf gains?

We don't need the order guarantee. Also, I hope it could improve perf. I don't run tests yet. I had this branch since some times in my local repo.

@Conaclos Conaclos merged commit 3e9d288 into main May 16, 2024
13 checks passed
@Conaclos Conaclos deleted the conaclos/path-interner-hash-set branch May 16, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Area: CLI A-Core Area: core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants