perf(graph): fast-reject FileNode Eq and hash interned node strings by content id - #832
Merged
jonathanong merged 2 commits intoSep 5, 2026
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jonathanong
marked this pull request as ready for review
September 5, 2026 07:27
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jonathanong
force-pushed
the
execute-plan/79dd0742-pr-2-faster-filenode-eq-and-interned-string-hashing
branch
from
September 5, 2026 07:40
a21059f to
d4d41b9
Compare
This comment has been minimized.
This comment has been minimized.
…y content id Reject FileNode equality on path-hash mismatch and hash symbol/job strings by a stored Fx content id so map probes do not rehash OsStr/str bytes.
rust-no-inline-tests forbids inline #[cfg(test)] items in production source; keep from_parts on interned_identity_tests.
jonathanong
force-pushed
the
execute-plan/79dd0742-pr-2-faster-filenode-eq-and-interned-string-hashing
branch
from
September 5, 2026 07:46
d4d41b9 to
03ccd35
Compare
This comment has been minimized.
This comment has been minimized.
jonathanong
deleted the
execute-plan/79dd0742-pr-2-faster-filenode-eq-and-interned-string-hashing
branch
September 5, 2026 09:18
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.
Summary
Reject
FileNodeequality on path-hash mismatch without reading OsStr bytes (still compare paths when ids match, for hash-collision safety). Wrap symbol/job/module/procedure names inInternedStrso HashMap probes hash a stored Fx content id, never an Arc pointer. StandaloneNodeId::symbolandNodeId::symbol_instay Hash/Eq compatible.Local Criterion (source of truth)
Machine: macOS aarch64, rustc 1.96.0,
--sample-size 20. Same machine before/after. CodSpeed is not used as a gate.graph_production_finalization/node_id_finalizationgraph/all_domains_buildNo solo win on these benches; the change is Hash/Eq correctness plus cheaper probes that compound with PR 1 on real maps.
Shepherd Journal
IC_kwDOSaSRXM8AAAABStKfwA/IC_kwDOSaSRXM8AAAABStKhBAand Sourcery budget reviewPRR_kwDOSaSRXM8AAAABMTHoCware bot-limit notices, not code findings; minimize only.IC_kwDOSaSRXM8AAAABStOdow/IC_kwDOSaSRXM8AAAABStQZFware bot-limit notices, not code findings; minimize only.