[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/project-files-pipe-grep 6ab80e8 2/2: Use 'xargs -P
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] scratch/project-files-pipe-grep 6ab80e8 2/2: Use 'xargs -P0' to further improve performance |
Date: |
Mon, 7 Jan 2019 18:15:50 -0500 (EST) |
branch: scratch/project-files-pipe-grep
commit 6ab80e88c5742a9de5a943f2742191fba7987cca
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Use 'xargs -P0' to further improve performance
Makes project-files-pipe-grep faster than project-find-regexp on my machine.
---
lisp/progmodes/project.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 55d683f..cd4cdf1 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -365,7 +365,7 @@ pattern to search for."
(status nil)
(hits nil)
(xrefs nil)
- (command (format "xargs -0 -P 1 grep %s -nHe %s"
+ (command (format "xargs -0 -P 0 grep %s -nHe %s"
(if (and case-fold-search
(isearch-no-upper-case-p regexp t))
"-i"