From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Any idea about what makes Emacs slow reading on pipes? Date: Fri, 16 May 2003 11:18:34 -0600 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3EC51D6A.3070804@yahoo.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053106384 6050 80.91.224.249 (16 May 2003 17:33:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 May 2003 17:33:04 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 16 19:33:02 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19GizX-0001BZ-00 for ; Fri, 16 May 2003 19:27:35 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Gj7z-0006zi-00 for ; Fri, 16 May 2003 19:36:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Gizv-0007MH-03 for emacs-devel@quimby.gnus.org; Fri, 16 May 2003 13:27:59 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19GizE-00075C-00 for emacs-devel@gnu.org; Fri, 16 May 2003 13:27:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Giyc-0006al-00 for emacs-devel@gnu.org; Fri, 16 May 2003 13:26:38 -0400 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Gixv-0006YF-00 for emacs-devel@gnu.org; Fri, 16 May 2003 13:25:55 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19Gis8-0000cB-00 for ; Fri, 16 May 2003 19:19:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19Giox-0000Jn-00 for ; Fri, 16 May 2003 19:16:39 +0200 Original-Lines: 27 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13933 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13933 David Kastrup wrote: > The following exhibits abysmal speed within Emacs: > > (let (process-connection-type) (switch-to-buffer (generate-new-buffer > "*test*"))(erase-buffer)(start-process "test" (current-buffer) "sh" > "-c" "hexdump -v /dev/zero|dd bs=1 count=100k")(erase-buffer)) > > More to the point, things start out dead slow and get faster later. > It is not the fault of the programs on the sending side: just piping > into cat >/dev/null instead of Emacs is much much faster. It does > not seem that setting process-connection-type to nil as above (using > a pipe instead of a pty) does help worth noting. > > The system I see this in is > GNU Emacs 21.3.50.3 (i686-pc-linux-gnu) > a RedHat 9 system, but I have seen this in practically every Linux > system up to now. Is this a Linux-specific problem, or do others see > this as well? /usr/bin/sh: hexdump: not found Can you suggest an alternative to hexdump for Solaris? -- Kevin Rodgers