Skip to content

Conversation

@ry2009
Copy link
Contributor

@ry2009 ry2009 commented Dec 9, 2025

  • Ripgrep file listing now stops the underlying rg --files process when consumers exit early (e.g., after hitting the 100-result cap), preventing full-tree scans from pegging CPU.
  • Glob tool now ignores common heavy directories by default (node_modules, .venv, .direnv, .cache, dist, build, out, .next, target, coverage, tmp, temp, pycache), reducing work for typical searches.

Comment on lines 8 to 21
const DEFAULT_IGNORE = [
"**/node_modules/**",
"**/.venv/**",
"**/.direnv/**",
"**/.cache/**",
"**/dist/**",
"**/build/**",
"**/out/**",
"**/.next/**",
"**/target/**",
"**/coverage/**",
"**/tmp/**",
"**/temp/**",
"**/__pycache__/**",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ripgrep automatically respects gitignore which should have these typically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch the main mitigation win here is early-stop/kill behavior but some of these are not standard unignored caches in .gitignore & sometimes some people have no .git present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants