public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Console output oddity
@ 2000-09-28  2:01 Keith Fielding
  2000-09-30 18:22 ` Jonas Jensen
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Fielding @ 2000-09-28  2:01 UTC (permalink / raw)
  To: cygwin

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?
-- 
Keith Fielding

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Console output oddity
  2000-09-28  2:01 Console output oddity Keith Fielding
@ 2000-09-30 18:22 ` Jonas Jensen
  2000-09-30 19:05   ` Chris Faylor
  0 siblings, 1 reply; 3+ messages in thread
From: Jonas Jensen @ 2000-09-30 18:22 UTC (permalink / raw)
  To: cygwin, Keith Fielding

----- Original Message -----
From: "Keith Fielding" <keithf@gaast.demon.co.uk>
To: <cygwin@sourceware.cygnus.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@sourceware.cygnus.com

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

* Re: Console output oddity
  2000-09-30 18:22 ` Jonas Jensen
@ 2000-09-30 19:05   ` Chris Faylor
  0 siblings, 0 replies; 3+ messages in thread
From: Chris Faylor @ 2000-09-30 19:05 UTC (permalink / raw)
  To: cygwin

On Sun, Oct 01, 2000 at 03:17:15AM +0200, Jonas Jensen wrote:
>>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...

I would certainly care to have any patch that speeds up any aspect of
Cygwin.

However, if you are referring to slowness when using the CYGWIN=tty
setting, then you should notice considerable speedups in recent cygwin
snapshots.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2000-09-30 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-28  2:01 Console output oddity Keith Fielding
2000-09-30 18:22 ` Jonas Jensen
2000-09-30 19:05   ` Chris Faylor

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).