public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: tryandbuy <tryandbuy@proton.me>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Performance regression in cygwin 3.4.0
Date: Wed, 07 Dec 2022 19:38:19 +0000	[thread overview]
Message-ID: <Abw9_BgkZRll8zEaAWSNVO1Uw0sF_--Amd02G5fpj3r5O6QBhyqjWu2cxV1IctJtM03OGztfZx60TEIYfDi34p3_unluAxKgQDzcsYZASxY=@proton.me> (raw)

Reading from stdin is very slow when a process runs outside of Cygwin Terminal.

Steps to reproduce:
1. Create "test.txt" file using python code:
long_text = "10" * 2500
with open(r'test.txt', 'w') as f:
    for i in range(5000):
        f.write('KEY%03d: %d => %s\n' % (i % 100, i, long_text))

2. Install "cygwin" package version > "3.3.6-1"
3. Open windows command prompt (cmd.exe)
4. Enter command:
type test.txt | c:\cygwin64\bin\wc.exe -l

When running the same command (use cat instead of type) on the Cygwin Terminal, no performance issues observed.

The last version of cygwin package without issues: 3.3.6-1
Versions of cygwin package with issues: 3.4.x - 3.5.x

P.S. I tested this combinations of pipings:
cygwin_prog | win_prog    # no issues
win_prog | cygwin_prog    # has issues when running in windows command prompt, no issues in Cygwin Terminal
cygwin_prog | cygwin_prog # has issues  when running in windows command prompt, no issues in Cygwin Terminal


             reply	other threads:[~2022-12-07 19:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-07 19:38 tryandbuy [this message]
2022-12-08  9:46 ` Takashi Yano

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Abw9_BgkZRll8zEaAWSNVO1Uw0sF_--Amd02G5fpj3r5O6QBhyqjWu2cxV1IctJtM03OGztfZx60TEIYfDi34p3_unluAxKgQDzcsYZASxY=@proton.me' \
    --to=tryandbuy@proton.me \
    --cc=cygwin@cygwin.com \
    /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.
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).