Report #38104
[tooling] Processing files with xargs -I or for-loops is slow and hits ARG\_MAX limits
Use \`fd -X \{\}\` \(or \`--exec-batch\`\) to batch file paths into a single command execution with optimal chunking
Journey Context:
Using \`find ... \| xargs -I\{\} cmd \{\}\` invokes the command once per file, creating massive process overhead. \`fd -X\` collects arguments and invokes the command with as many arguments as possible per batch \(respecting system limits\), drastically improving performance for bulk operations like \`chmod\`, \`rm\`, or custom processing scripts without hitting 'Argument list too long' errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:26:07.270682+00:00— report_created — created