perf(semantic): use FxHashMap to replace IndexVec for symbol_redeclarations#10058
Merged
graphite-app[bot] merged 1 commit intomainfrom Mar 28, 2025
Conversation
Member
Author
CodSpeed Instrumentation Performance ReportMerging #10058 will not alter performanceComparing Summary
|
symbol_redeclarationsFxHashMap to replace IndexVec for symbol_redeclarations
FxHashMap to replace IndexVec for symbol_redeclarationsFxHashMap to replace IndexVec for symbol_redeclarations
FxHashMap to replace IndexVec for symbol_redeclarationsFxHashMap to replace IndexVec for symbol_redeclarations
814a4be to
e507c56
Compare
This was referenced Mar 26, 2025
e507c56 to
0a6af60
Compare
This was referenced Mar 26, 2025
This was referenced Mar 27, 2025
Contributor
Merge activity
|
…eclarations` (#10058) Further improve on #4463. As #4463 said: > Most symbols don't have redeclarations. Yes, so inserting a `None` for every `SymbolId` is also unnecessary, changes to `FxHashMap` so that we can insert where redeclaration appears. There is a 1% performance improvement in semantic! <img width="996" alt="image" src="https://github.com/user-attachments/assets/612aea11-8555-4734-a453-443194413d21" />
0a6af60 to
84e167e
Compare
Member
|
I'm late to the party on this one but: Nice! I'm not sure why I used the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Further improve on #4463.
As #4463 said:
Yes, so inserting a
Nonefor everySymbolIdis also unnecessary, changes toFxHashMapso that we can insert where redeclaration appears.There is a 1% performance improvement in semantic!