delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/06/06/08:35:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D9A5E3858CDA
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=cs.umass.edu
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.umass.edu
Subject: Re: possible grep V3.7 issue
To: Gordon Grimes <Gordon DOT Grimes AT nortonlifelock DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
References: <MN2PR13MB388514876921EBCBC0BB38FA88D79 AT MN2PR13MB3885 DOT namprd13 DOT prod DOT outlook DOT com>
<MN2PR13MB3885F6723E20AF4268581CC188A29 AT MN2PR13MB3885 DOT namprd13 DOT prod DOT outlook DOT com>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <d3816695-b92c-f6e5-8d52-38a0b38ec479@cs.umass.edu>
Date: Mon, 6 Jun 2022 08:34:23 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
Thunderbird/68.12.1
MIME-Version: 1.0
In-Reply-To: <MN2PR13MB3885F6723E20AF4268581CC188A29@MN2PR13MB3885.namprd13.prod.outlook.com>
X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL,
KAM_DMARC_STATUS, KAM_SHORT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham 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 <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: moss AT cs DOT umass DOT edu
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 256CZ3cu022010

On 6/6/2022 8:26 AM, Gordon Grimes via Cygwin wrote:
> Hi,
> 
> I wanted to let you know about a possible issue I found in grep v3.7.  I run Cygwin and recently downgraded ‘grep’ to v3.6 from v3.7 to address a performance issue (shown below).
> I just thought you’d want to know  (V3.6 is working well, so I’m in a good place 😊 )
> Enjoy,
> -g-
> 
> 
> % time echo hi | grep h
> hi
> 
> real        0m7.442s
> user       0m0.030s
> sys          0m6.576s
> 
> % /usr/bin/grep --version
> grep (GNU grep) 3.7
> Packaged by Cygwin (3.7-2)
> Copyright (C) 2021 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> 
> Written by Mike Haertel and others; see
> https://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS.
> 
> After the downgrade…
> 
> % time echo hi | grep h
> hi
> 
> real        0m0.292s
> user       0m0.015s
> sys          0m0.124s

I'm running 3.7-2 and get timing similar to what you give
for 3.6:

real    0m0.167s
user    0m0.015s
sys     0m0.061s

Not sure what to say unless, if I downgraded, it would be
an order of magnitude faster ...

I wonder if maybe the new version triggers some anti-virus
activity or something like that.

Eliot Moss

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019