-
-
Notifications
You must be signed in to change notification settings - Fork 755
perf(semantic): use FxHashMap to replace IndexVec for symbol_redeclarations
#10058
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
graphite-app
merged 1 commit into
main
from
03-25-refactor_semantic_use_fxhashmap_to_replace_indexvec_for_symbol_redeclarations
Mar 28, 2025
Merged
perf(semantic): use FxHashMap to replace IndexVec for symbol_redeclarations
#10058
graphite-app
merged 1 commit into
main
from
03-25-refactor_semantic_use_fxhashmap_to_replace_indexvec_for_symbol_redeclarations
Mar 28, 2025
Conversation
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-semantic
Area - Semantic
C-cleanup
Category - technical debt or refactoring. Solution not expected to change behavior
C-performance
Category - Solution not expected to change functional behavior, only performance
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!