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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: "'cygwin AT cygwin DOT com'" CC: Fergus Daly Subject: Re: Syntax for sed .. altered? Date: Fri, 1 Jul 2016 09:17:20 +0000 Message-ID: <9D9AC45310887B40A7245734E850FBE13946CE19@FS-MX02.frontier.local> Content-Type: text/plain; charset="us-ascii" 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 Content-Transfer-Encoding: 8bit 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