Use "find -exec" with "+" to avoid excessive grep forking.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 04 Nov 2021 11:26:12 +0200
changeset 1748 e9610d83f4ff
parent 1747 b7d3a5fd4059
child 1749 8a249e97c2a5
Use "find -exec" with "+" to avoid excessive grep forking.
.emacs-my
--- a/.emacs-my	Sun Sep 05 12:17:11 2021 +0300
+++ b/.emacs-my	Thu Nov 04 11:26:12 2021 +0200
@@ -919,7 +919,8 @@
 ;; to avoid unnecessary sys calls and this make output aligned by column:
 (setq find-ls-option '("-printf ' -rw-rw-rw- %9s %AY-%Am-%Ad %AH:%AM %p\n'" . ""))
 
-(cl-eval-when (compile) (require 'grep))
+(require 'grep)
+(grep-apply-setting 'grep-find-use-xargs 'exec-plus)
 
 ;; Do not set t because some grep do not has --color options.
 (setq grep-highlight-matches nil)