From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-4319.protonmail.ch (mail-4319.protonmail.ch [185.70.43.19]) by sourceware.org (Postfix) with ESMTPS id 164893834C01 for ; Wed, 7 Dec 2022 19:38:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 164893834C01 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=proton.me Date: Wed, 07 Dec 2022 19:38:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1670441906; x=1670701106; bh=8/Tjf7Kv3JuYP3Ju73SlDv4OAeIOXD8eFSiVfkdAiwc=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=In9Q8F4HRFiq/HgwKgYlSnqzpyK6KirNcDUWPBHpe7Sj0nj53fSlqh0sfXUV2Fykr qWI87EOfS6UGpKzLJfkAqm9hhb+25UH+/P1v5Jj7Oz+lMJz+1H5uyC8E9joSPwJU4q 4qn9tK7Z1/pliHW7b/bvDgE/KhydDnahWgC4vY8xmUVYO/SVfTUrWoaTPHINjnTbBO f5sfshPGiX9q4mTy+uE+d4d+vjJb6yQ0M3mAqPs1KEwyt61WJP4Tdw9mSLZ4geSZJy 2rFpQPhtlvSgSs5u1X982TQOvpRecdj8ql1cT2QFk5fe9CS43GbxFToMC3y26QG7/3 Cf+A5Xf1z6w+g== To: "cygwin@cygwin.com" From: tryandbuy Subject: Performance regression in cygwin 3.4.0 Message-ID: Feedback-ID: 63211331:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_INFOUSMEBIZ,KAM_NUMSUBJECT,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Reading from stdin is very slow when a process runs outside of Cygwin Termi= nal. Steps to reproduce: 1. Create "test.txt" file using python code: long_text =3D "10" * 2500 with open(r'test.txt', 'w') as f: for i in range(5000): f.write('KEY%03d: %d =3D> %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 Termi= nal, 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 prom= pt, no issues in Cygwin Terminal cygwin_prog | cygwin_prog # has issues when running in windows command pro= mpt, no issues in Cygwin Terminal