delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:subject:date:message-id:references | |
:in-reply-to:content-type:content-transfer-encoding | |
:mime-version; q=dns; s=default; b=ShzBVML8dQ+61++0hl+LpWxjiNOtr | |
ptljmHq6HsMdW+Ty0GCTSsLpXmWkgi/1hMGcGliqGvh6/PZRumckiXZKIbCAj+ZH | |
RLWK9Ncj7hA16Sc9VfS0/FBPC5sI4tkjaa1DDHBDPTPCjOkUmqaN4ThHdhOoqeNr | |
uLRAJEvk1z9pqI= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:subject:date:message-id:references | |
:in-reply-to:content-type:content-transfer-encoding | |
:mime-version; s=default; bh=f44BbCYM+PYBN+5Jg7a2sQomGmM=; b=D5E | |
xCfr6r5zj/xgPRU8150v+/lsYhS2iYGns3mZKs8AwRriZE7NzGEh9BOWAExj1fPb | |
Ia2teou7CrddUcJFnT+dqrpLAt4e+v/6Y0wTbk/wWC1B+HXLaDySISJpd5gpciAv | |
x1g00JDn3EqP2WKDmfqJVMQLU9owJLhiEBMnPdWU= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
X-Spam-SWARE-Status: | No, score=-2.9 required=5.0 tests=AWL,BAYES_05,KHOP_THREADED,RP_MATCHES_RCVD autolearn=ham version=3.3.1 |
From: | Adam Dinwoodie <Adam DOT Dinwoodie AT metaswitch DOT com> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | RE: bash-completion load times |
Date: | Wed, 10 Apr 2013 16:31:43 +0000 |
Deferred-Delivery: | Wed, 10 Apr 2013 16:31:00 +0000 |
Message-ID: | <CE9C056E12502146A72FD81290379E9A60954AD2@ENFIRHMBX1.datcon.co.uk> |
References: | <CE9C056E12502146A72FD81290379E9A6093A204 AT ENFIRHMBX1 DOT datcon DOT co DOT uk> <20130409212105 DOT GA8645 AT phoenix> |
In-Reply-To: | <20130409212105.GA8645@phoenix> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id r3AGW9AG007452 |
Gary Johnson wrote: > Cygwin's bash-completion package is version 1.3. Versions 1.9 and > later use dynamic loading of completions that is supposed to > improve the loading times. I think your best bet is to wait for the > Cygwin package to be updated to the latest 2.1 version and see how > that improves performance. Or just download and install it from > source yourself. I'll give that a try when I have a chance, and report back on what difference it makes. > That said, I'm surprised by the variation in load times of the files > in /etc/bash_completion.d that you observed. Those files all start > with a call to the have() function which should abort further > processing of the file if the corresponding program is not > installed. The results I was seeing were pretty consistent. I'd guess the difference is due to either (a) some files being larger and thus taking significantly longer to parse, (b) calls to have() being slow in Cygwin for some reason, or (c) both. It should be relatively easy to distinguish between these experimentally. However if upgrading to a later version of bash-completion solves the problem, I suspect it won't be worth the effort. Adam -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |