unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#895: slow processing of process output
@ 2009-03-01 14:33 Markus Triska
  2011-06-30  1:10 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 20+ messages in thread
From: Markus Triska @ 2009-03-01 14:33 UTC (permalink / raw)
  To: 895; +Cc: Dan Nicolaescu


I can reproduce the problem on OSX, and could significantly improve the
running time by setting process-connection-type to nil before doing the
rgrep. Let rgrep.el consist of:

   (grep-compute-defaults)
   (setq process-connection-type nil)
   (rgrep "emacs" "*.el" "~/emacs/lisp/")

   (while (process-status "grep")
     (sit-for 0.1))

and do:

   $ time emacs -Q --script rgrep.el

Then contrast this with retaining t for process-connection-type.

I have seen that using a pty can be a major performance problem also
when communicating with other external programs, and I recommend to
let-bind it to nil before starting the process when a pipe suffices.






^ permalink raw reply	[flat|nested] 20+ messages in thread
* bug#895: slow processing of process output
@ 2008-09-05 15:43 Dan Nicolaescu
  2008-10-02  9:29 ` Dan Nicolaescu
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Dan Nicolaescu @ 2008-09-05 15:43 UTC (permalink / raw)
  To: bug-gnu-emacs


emacs -Q -nw
M-x rgrep RET emacs RET *.el RET PATH_TO_EMACS_SOURCE_TREE/lisp RET

takes a few minutes.  The output is about 9000 lines.

Running the correspondind command:

find . \( -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o -type f \( -name *.el \) -print0 | xargs -0 -e grep -i -nH -e emacs

from a shell (and redirecting the output to a file) takes less than one second.







^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2016-06-05  1:51 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-01 14:33 bug#895: slow processing of process output Markus Triska
2011-06-30  1:10 ` Lars Magne Ingebrigtsen
2011-07-06 15:07   ` Stefan Monnier
2011-07-06 15:51     ` Lars Magne Ingebrigtsen
2011-07-06 15:57     ` Lars Magne Ingebrigtsen
2011-07-06 17:58       ` Drew Adams
2011-07-06 18:50         ` Lars Magne Ingebrigtsen
2011-07-06 19:15       ` Stefan Monnier
2011-07-06 15:32   ` Dan Nicolaescu
2011-07-06 19:17     ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2008-09-05 15:43 Dan Nicolaescu
2008-10-02  9:29 ` Dan Nicolaescu
2016-01-08  1:24 ` Richard Copley
2016-01-08  9:30   ` Eli Zaretskii
2016-01-08  9:53     ` Alexis
2016-01-08 10:00       ` Eli Zaretskii
2016-01-08 10:07     ` Dmitry Gutov
2016-01-08 10:54       ` Eli Zaretskii
2016-01-08  1:26 ` Richard Copley
2016-06-05  1:51 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).