X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.1 required=5.0	tests=AWL,BAYES_50,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Nahor <nahor.j+gmane@gmail.com>
Subject: Re: Bash login slow after upgrade to cygwin 1.7
Date: Fri, 20 Aug 2010 10:20:11 -0700
Lines: 17
Message-ID: <i4mdgd$fnc$1@dough.gmane.org>
References: <AANLkTi=FJx=xaKMDSV_D7oDFVRPGaoSSs=CeL+rcReEY@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2
In-Reply-To: <AANLkTi=FJx=xaKMDSV_D7oDFVRPGaoSSs=CeL+rcReEY@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

  On 2010-08-20 7:50, Jeremy Ramer wrote:
> After upgrading from cygwin 1.5 to cygwin 1.7 starting a bash shell is
> much slower.  It usually takes around 4 seconds before I get a prompt.
>   On cygwin 1.5 it was only around 1 second.  I captured some logs from
> the startup using this process:
> - Open cmd shell
> cd C:\cygwin\bin
> bash --login -i -x 1>  C:\startlog.txt 2>&1
>
> The log is attached. I don't see anything strange except that it seems
> pretty long. The same process on cygwin 1.5 gives much less output. I
> can provide that log if needed.
> Any ideas?

It's the loading of all the bashcompletion scripts. Move the directory 
/etc/bash_completion.d away and you'll see it's a lot faster.



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

