delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/02/03:26:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
Subject: Re: 1.7.[67]: getting bash prompt takes > 50 seconds
References: <4C7F0C3E DOT 5020904 AT hicorp DOT co DOT jp>
Date: Thu, 02 Sep 2010 09:25:56 +0200
MIME-Version: 1.0
From: "Matthias Andree" <matthias DOT andree AT gmx DOT de>
Message-ID: <op.vid9lizv1e62zd@merlin.emma.line.org>
In-Reply-To: <4C7F0C3E.5020904@hicorp.co.jp>
User-Agent: Opera Mail/10.61 (Linux)
X-IsSubscribed: yes
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

Am 02.09.2010, 04:30 Uhr, schrieb Mark Callow:

>
>
> Hi Andrey,
>
>> Did you tried to *uninstall* bash-completion?
> I have now. Surprisingly (to me) it worked. The time-to-prompt has
> dropped to ~5 seconds on one of the machines and ~8 seconds on the
> other. Both are still too long but a vast improvement over 50 seconds.

You can open a cmd.exe terminal window and type "bash --login -x" (or -xv)  
to figure if it spends a particularly long time in a certain area of the  
.bashrc execution, however, Cygwin is indeed a lot slower than Unix when  
shell scripting, because creating Unix processes is very costly in Cygwin,  
and that is an operation that happens a lot in shell scripts...

-- 
Matthias Andree

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