-
-
Notifications
You must be signed in to change notification settings - Fork 251
Open
Labels
perfPerformance ImprovementPerformance Improvement
Description
β Suggestion
We can use ahash to improve HashMap performance. ast-grep does not need cryptographically good hash.
π» Use Cases
Use this rule to find potential usages worth refactoring.
id: replace-hash
message: use ahash?
severity: info
language: Rust
rule:
pattern: use std::collections::HashMap;
not:
inside:
stopBy: end
pattern: mod test { $$$ }
HerringtonDarkholme
Metadata
Metadata
Assignees
Labels
perfPerformance ImprovementPerformance Improvement