Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com> List-Archive: <http://sources.redhat.com/ml/cygwin/> List-Post: <mailto:cygwin AT sources DOT redhat DOT com> List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Originating-IP: [212.54.93.134] From: "Jonas Jensen" <bones0_list AT hotmail DOT com> To: <cygwin AT sourceware DOT cygnus DOT com>, "Keith Fielding" <keithf AT gaast DOT demon DOT co DOT uk> References: <i3S2hIAYIl05EwrY AT gaast DOT demon DOT co DOT uk> Subject: Re: Console output oddity Date: Sun, 1 Oct 2000 03:17:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <OE133tYwlib4g3Sv0YK00002446@hotmail.com> X-OriginalArrivalTime: 01 Oct 2000 01:22:06.0980 (UTC) FILETIME=[03523C40:01C02B46] ----- Original Message ----- From: "Keith Fielding" <keithf AT gaast DOT demon DOT co DOT uk> To: <cygwin AT sourceware DOT cygnus DOT com> Sent: Wednesday, September 27, 2000 10:01 PM Subject: Console output oddity > I have noticed a very odd behaviour when I am sending a large amount of > output to the console screen. > If I "cat" a large text file in a bash window it takes about 20 times > longer than if I "type" the same file in a DOS window. If I press and > hold down the CONTROL, SHIFT or ALT key as soon as the "cat" is started > then it runs about 4 times as fast. (If I hold the key down while > starting the "cat" it runs at the lower speed but the speed increases if > I release the key and then press it again.) > A simple C program which just loops printing a counter to stdout can be > speeded up by a factor of about 4 by holding down a key while it runs. > It can be speeded up by a factor of about 20 by compiling it with the > "-mno-cygwin" switch. > Can anyone offer an explanation? I reported this problem some time ago, I think the topic was called "printf is faster when piped through tee". I can't reproduce the effects you talk about when holding a key, on my system (W2k) cat is actually marginally faster than type. The C program that you can speed up with -mno-cygwin can get almost the same speed increase if piped through cat or tee. AFAIK, the problem was never fixed -- "Patches are Gratefully ConsideredT", but I can't fix it and nobody else seems to care... -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com