Report #50527
[tooling] find -exec is slow and xargs has quoting bugs with special filenames
Use fd -X command \{\} \+ to batch execute commands with null-delimited safety and optimal batching
Journey Context:
find -exec cmd \{\} \\; forks a new process per file \(slow\). find -exec cmd \{\} \+ batches but fails on filenames with spaces. find ... \| xargs -0 works but requires -print0 and still has argument length limits that cause 'argument list too long' errors. fd -X \(parallel exec\) batches arguments efficiently \(like xargs\), respects .gitignore by default \(unlike find\), and handles all edge cases \(newlines, spaces, unicode\) without complex quoting. It also runs in parallel where possible, saturating CPU cores for compression/encryption tasks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:17:37.231893+00:00— report_created — created