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: List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: "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: References: <20130409212105 DOT GA8645 AT phoenix> In-Reply-To: <20130409212105.GA8645@phoenix> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit 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