From: Markus Triska <markus.triska@gmx.at>
To: 895@emacsbugs.donarmstrong.com
Cc: Dan Nicolaescu <dann@ics.uci.edu>
Subject: bug#895: slow processing of process output
Date: Sun, 01 Mar 2009 15:33:14 +0100 [thread overview]
Message-ID: <m11vthqpn9.fsf@gmx.at> (raw)
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.
next reply other threads:[~2009-03-01 14:33 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-01 14:33 Markus Triska [this message]
2011-06-30 1:10 ` bug#895: slow processing of process output 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m11vthqpn9.fsf@gmx.at \
--to=markus.triska@gmx.at \
--cc=895@emacsbugs.donarmstrong.com \
--cc=dann@ics.uci.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).