www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/16/16:35:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
From: "David E. Weekly" <david AT there DOT com>
To: "Bernard A Badger" <bab AT vx DOT com>, "cygwin" <cygwin AT cygwin DOT com>
Subject: RE: Cygwin is SLOW.
Date: Tue, 16 Jul 2002 13:34:03 -0700
Message-ID: <LHEEIFOFMFKJEJHIKLJCAEODCEAA.david@there.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <INEKLKBFCDBPKMKAJLMDOEPKCFAA.bab@vx.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700

Bernard,

> Next time, try pasting the _actual_ script that you're using.

Thank you very much for your patience and for running the script -- my
apologies for the poor attachment; I will take greater care next time
posting.

> You're script isn't just doing chmod, though, it's doing SYSTEM chmod.

I realize that. Locally we did the same thing that you did, namely to
replace the Perl system() calls with local Perl fs calls -- that sped things
up quite a bit.

While you tried out the script with an older Perl, we were using the exact
same Perl (ActivePerl build 517), but varying our version of Cygwin used.
Our scripts were all executing locally, from local executables, so it wasn't
a network issue, either.

> If you want it to run fast, avoid system().

Our conclusion as well, but an unfortunate one, given that the older Cygwins
(not the older Perls) seem to be a whole lot more efficient at system(). Did
this get moved from copy-on-write lazy-load to some sort of "copy all pages
before doing anything" kind of a model? It feels like a bug. I may try to
get around to it, but I felt it was my duty to bring this to the attention
of the Cygwin crowd, in case it was sufficiently obvious to someone.

Bernard, thank you again for your time, and double apologies for the poor
script attachment.

Yours,
 David E. Weekly
 Software Engineer
 There, Inc.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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