delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/06/28/22:37:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <BANLkTinZih7DKLYxXxLBVpdmFn62Tu4kdA@mail.gmail.com>
References: <BANLkTinZih7DKLYxXxLBVpdmFn62Tu4kdA AT mail DOT gmail DOT com>
From: Sravan Bhamidipati <bsravanin AT gmail DOT com>
Date: Wed, 29 Jun 2011 08:06:41 +0530
Message-ID: <BANLkTimi3ocB=Z05SyEQBe+u7jtaRx4mkw@mail.gmail.com>
Subject: Re: Programming Anti-patterns in Shell and Perl Scripts
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 28/06/2011 3:21 PM, Ryan Johnson wrote:
> I don't use bash-completion myself, but my understanding is
> that it can be very slow, if for no other reason than fork() is
> slow in cygwin. If your de-anti-pattern transformation causes
> fewer calls to fork() -- and the above expr example suggests
> it does -- it could be very worthwhile.

That's the basic underlying principle to start with, Ryan. That in
general: Accessing memory << Calling a function << Forking a process.


> Implementation-wise, you probably want to start here:
> http://www.cygwin.com/contrib.html

You mean directly making those changes? I've never done that before,
so I was hoping to catch the attention of a few of the package
owners/contributors and give/take their help.

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