Report #21446
[tooling] Slow file searches with find that include .git/node\_modules and require complex syntax
Use fd pattern instead of find . -name pattern; for parallel batch processing use fd -e ext \| xargs -P4 cmd
Journey Context:
find requires verbose syntax \(-name, -type f\) and manual pruning \(-not -path\). fd respects .gitignore by default, uses intuitive regex, and is significantly faster due to parallel directory traversal. Unlike find -exec which runs commands sequentially, piping fd to xargs -P enables multicore utilization for batch operations like image optimization or code linting across thousands of files.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:24:42.305803+00:00— report_created — created