emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/project-files-pipe-grep b841ace: Revert "Use 'xarg


From: Dmitry Gutov
Subject: [Emacs-diffs] scratch/project-files-pipe-grep b841ace: Revert "Use 'xargs -P0' to further improve performance"
Date: Mon, 7 Jan 2019 18:45:11 -0500 (EST)

branch: scratch/project-files-pipe-grep
commit b841ace6313a9c025038b192cc5d9efd12d93eae
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Revert "Use 'xargs -P0' to further improve performance"
    
    This reverts commit 6ab80e88c5742a9de5a943f2742191fba7987cca.
    
    If there are enough hits, the output becomes mixed up (like xargs'
    manual warns). Let's leave up any locking schemes, or whatever, up to
    whoever motivated enough comes next.
---
 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 cd4cdf1..55d683f 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 0 grep %s -nHe %s"
+       (command (format "xargs -0 -P 1 grep %s -nHe %s"
                         (if (and case-fold-search
                                  (isearch-no-upper-case-p regexp t))
                             "-i"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]