From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16822 invoked by alias); 29 Jun 2011 02:37:17 -0000 Received: (qmail 16813 invoked by uid 22791); 29 Jun 2011 02:37:16 -0000 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 Received: from mail-vx0-f171.google.com (HELO mail-vx0-f171.google.com) (209.85.220.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Jun 2011 02:37:02 +0000 Received: by vxh11 with SMTP id 11so798911vxh.2 for ; Tue, 28 Jun 2011 19:37:02 -0700 (PDT) Received: by 10.52.96.228 with SMTP id dv4mr247971vdb.219.1309315021092; Tue, 28 Jun 2011 19:37:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.158.103 with HTTP; Tue, 28 Jun 2011 19:36:41 -0700 (PDT) In-Reply-To: References: From: Sravan Bhamidipati Date: Wed, 29 Jun 2011 02:37:00 -0000 Message-ID: Subject: Re: Programming Anti-patterns in Shell and Perl Scripts To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-06/txt/msg00325.txt.bz2 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