Commit e1ef00d
committed
perf: use IdentityHasher for visited set to avoid double hashing (#837)
## Summary
- Replace `FxHashSet<u64>` with `HashSet<u64, BuildHasherDefault<IdentityHasher>>` for the visited set in canonicalization
- Avoids double hashing since the stored values are already hash values (`u64`)
- Consistent with the existing usage of `IdentityHasher` for `HashSet<CachedPath>` in the same file
## Test plan
- ✅ All existing tests pass (`cargo test --lib`)
- ✅ No clippy warnings (`cargo clippy --all-targets -- --deny warnings`)
- ✅ Code compiles successfully
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 5a42e31 commit e1ef00d
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | | - | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
0 commit comments