Skip to content
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

[perf] use AHash for hashmap #449

Open
HerringtonDarkholme opened this issue Jun 9, 2023 · 0 comments
Open

[perf] use AHash for hashmap #449

HerringtonDarkholme opened this issue Jun 9, 2023 · 0 comments
Labels
perf Performance Improvement

Comments

@HerringtonDarkholme
Copy link
Member

HerringtonDarkholme commented Jun 9, 2023

⭐ 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 HerringtonDarkholme added the perf Performance Improvement label Jun 9, 2023
@HerringtonDarkholme HerringtonDarkholme changed the title [perf] [perf] use AHash for hashmap Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf Performance Improvement
Projects
None yet
Development

No branches or pull requests

1 participant