X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D8C2390CE87 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1670441953; bh=mI6YCxfs9588BoJnLuDctbVr5cqz7hiBUbjbOYalSOQ=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=NKRvNETL48etNqNSyVCqC4yxgmGUErIOzvKJb93DpyqZ7umfvjGRjFSVlAhbqJQ6E c4iVKQgkONhVFd4OomDNdcAYxa6WBUrqCQc3nuE/3TWCXr8lZwEqpDCfPgZFu/2sa1 +Goqzz5DxN9EwaRMEAVC9aY+nU0PccNCeJG9gDUw= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 164893834C01 Date: Wed, 07 Dec 2022 19:38:19 +0000 To: "cygwin AT cygwin DOT com" Subject: Performance regression in cygwin 3.4.0 Message-ID: Feedback-ID: 63211331:user:proton MIME-Version: 1.0 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: tryandbuy via Cygwin Reply-To: tryandbuy Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple