From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-04.nifty.com (conssluserg-04.nifty.com [210.131.2.83]) by sourceware.org (Postfix) with ESMTPS id 1A30A384092F for ; Thu, 8 Dec 2022 09:47:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1A30A384092F Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from HP-Z230 (aj135041.dynamic.ppp.asahi-net.or.jp [220.150.135.41]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 2B89ktZl001501; Thu, 8 Dec 2022 18:46:56 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 2B89ktZl001501 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1670492816; bh=LtUrGTkdbK2+YDe077gjJvyidlvkbpwhabY/qAsvxVs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=s1mFBT1/nNVyyG8BmSU9du7DiBICR4qrdgyvJ48sOHKUdnHu2YYBrcxDmCTfh4VxN t283kcVfoC5SpwSndw9Z6tnitp/0ko4/A6jR6aCcpRYg05NLb8DMsmBKnWVpFfd5MJ ZFuJtB3gce7NvfVtUY82CB9MNyoqLKBuj5Hn/l1VZ6FKLd3kVj44dKg3jSi3gXmePQ cVwdWe/ODcYSSTAgMvnUws8efbVUBNPLDYvmV83vHbKXFSlLu6fywvJk1ZiWTN41eA wMLFDxOSpVxkMMhXF0mhyfQm7ansAIGa1o8RtZ4OJMcfd1pyhVPQVXQYREJ60Ie3eC k6bEoVTcDZqNA== X-Nifty-SrcIP: [220.150.135.41] Date: Thu, 8 Dec 2022 18:46:56 +0900 From: Takashi Yano To: cygwin@cygwin.com Cc: tryandbuy Subject: Re: Performance regression in cygwin 3.4.0 Message-Id: <20221208184656.ea6b9796eccc503c1e238f0f@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 07 Dec 2022 19:38:19 +0000 tryandbuy wrote: > 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 I confirmed the problem. I also identified the code difference, which causes the problem, between cygwin 3.3.x and 3.4.0. Let us consider how to fix that. -- Takashi Yano