delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/07/01/05:17:59

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:cc:subject:date:message-id
:content-type:content-transfer-encoding:mime-version; q=dns; s=
default; b=mYy6Tl58gM9uOrC9KFpyQmD5ZyzHtKAJiD3jrrbqpsLhrovmGANi3
fcVEplv5bD8URxBEkqCMQK3J9WUnzq6sbPzub9RafshNhhqaWdESd96GdVEPIAvM
sp0Fms2anBNnU+PSycS9ZzJQi4cb51qsZMqjHoXkWcAEce4JFF4vT0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:cc:subject:date:message-id
:content-type:content-transfer-encoding:mime-version; s=default;
bh=h272WxRxOYtxqjDoLjoqmNRFbtM=; b=NVj2ijCOfjhMq9dZ1OxZDmHEXyrY
1rSSsWwQears3KaoiqhyHp/vmJms9EK9bqnhu9WpFtJA/jDabqZUXDUmW19W1hDE
OZ/e7fUdULvjWQ3P6FF1tMi7cWRQcpPhs6KwfbYMZVYqxCF+E17Q95tkDdY9eOfV
O9e7lsjmcDUEfuw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.6 required=5.0 tests=AWL,BAYES_50,KAM_COUK,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:unknown, H*RU:unknown, H*p:D*uk, H*p:D*co.uk
X-HELO: mx-relay23-haj2.antispameurope.com
From: Fergus Daly <fergusd AT frontier-science DOT co DOT uk>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
CC: Fergus Daly <fergusd AT frontier-science DOT co DOT uk>
Subject: Re: Syntax for sed .. altered?
Date: Fri, 1 Jul 2016 09:17:20 +0000
Message-ID: <9D9AC45310887B40A7245734E850FBE13946CE19@FS-MX02.frontier.local>
MIME-Version: 1.0
X-cloud-security-sender:fergusd AT frontier-science DOT co DOT uk :
X-cloud-security-recipient:cygwin AT cygwin DOT com :
X-cloud-security-Virusscan:CLEAN :
X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-gate23-haj2 with E8DE224060
X-cloud-security-connect: unknown[195.59.181.82], TLS=1, IP=195.59.181.82
X-cloud-security:scantime:.2092 :
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u619HpJq001225

>> $ find archive -type f | wc
     87      87    1698
>> $ time find archive -type f | xargs sed -i 's/string1/string2/g'
     real    1m2.587s
     user    0m1.200s
     sys     0m12.884s
>> More than a minute for 90 files is just extraordinary.
>> Anybody else having a similar experience?

>  $ find test -type f |wc
     177     177    5119
>  $ time find test -type f | xargs sed -i -e "s/Octave/Pippo/g"
     real    0m5.149s
     user    0m0.170s
     sys     0m1.183s
     BLODA ?

All very perplexing. Within and between 3 different machines I get very variable timings of anything from 0m 52s to 3m 08s across 90 files, but never brief. On a 4th machine I get a more or less consistent 8s.
Previously I tried reverting to an earlier cygwin1.dll (much earlier: a year) and to the [prev] offering in setup for sed. No difference in experience. 
On local machines I have reduced all services and cut startup processes to just antivirus (MS Security Essentials or other). No difference.

So this is not a consequence of a weird file set or, apparently, a faulty Cygwin installation, but a manifestation of different machine architectures / platforms. All W7 but some 32 some 64. All protected, some differently, but having no congruence with the diverse timings above. 

Sio far sed is the only operation where extreme sloth is exhibited. A favoured benchtest  using a long computation within Cygwin has not suddenly slowed down, and remains consistent +/- 1 second within and between machines. More detective work required, I guess. And any "Me Too"s very gratefully received.

Fergus

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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