From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5621 invoked by alias); 20 Nov 2013 12:35:59 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18160 Received: (qmail 11469 invoked from network); 20 Nov 2013 12:35:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7fee6d000004b2d-93-528caca41df0 Date: Wed, 20 Nov 2013 12:35:47 +0000 From: Peter Stephenson To: Zsh Users Subject: Re: Opening a new tab is awkwardly slow Message-id: <20131120123547.2e9ab84f@pwslap01u.europe.root.pri> In-reply-to: References: <131119073326.ZM17938@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjluLIzCtJLcpLzFFi42I5/e/4Fd0la3qCDB7t1rbYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4Mvbs2MJWsJS74uf/acwNjO2cXYycHBICJhJtM4+wQthiEhfu rWfrYuTiEBJYyiixp3kuI5TDJHF17k42kCoWAVWJvZM3soDYbAKGElM3zWYEsUUEFCXO/PrG BGILCxhIfPrzHayeV8Be4vP+92A2p0CwxN8jD5ghhs5jlvjZfZkZJMEvoC9x9e8nJogz7CVm XjnDCNEsKPFj8j2wZcwCWhKbtzWxQtjyEpvXvGWewCgwC0nZLCRls5CULWBkXsUomlqaXFCc lJ5rqFecmFtcmpeul5yfu4kREoZfdjAuPmZ1iFGAg1GJh1diQXeQEGtiWXFl7iFGCQ5mJRFe 7mU9QUK8KYmVValF+fFFpTmpxYcYmTg4pRoYVR5/DloznWdm4/KaxsDHmeLzTvuxK/RG/Tt1 dsFDUd3SX2kuxinCKc0Hrut071Px+Wr1Ku3Xkhes2/gs3l6N6ohozp38Wuzv77fv95zr4r3z RddH+MeB8mkCqQtn1LVMdHM92L5rZcPMaREC7A/1jy+RcujTWRU2uSRiyZO/89xVll4xWa7G pMRSnJFoqMVcVJwIAANTwqwhAgAA On Wed, 20 Nov 2013 08:19:25 +0200 Timo Sand wrote: > Forgot to add the link > > I updated the Gist content https://gist.github.com/deiga/7547991 It would be useful if you were able to post a link to the text: looking at it in a browser widget isn't very convenient and we don't need the versioning information. > On 20 November 2013 08:18, Timo Sand wrote: > > The biggest timesink seems to be that my `.zprofile` gets loaded twice and > > thus `rbenv init` runs twice, which is kind of slow. The next would be > > `compdef/compaudit`, but I don't even know what to do about them. You're getting to areas where you need specific help from whoever knows what it is the script is trying to do, rather than zsh users generally. However, as far as the "compdef"s are concerned --- the code is defining these one by one as explicit compdef commands rather than using the mechanism where the line "#compdef blah" appears in the first line of the functions. If you arrange to use that mechanism --- simply having appropriate functions in you function search path when "compinit" is run is sufficient --- this will be optimised to setting a single array in a .zcompdump* dump file, which should be a good deal faster. Whether that's something you're responsible for or is down to an init file from someone else is, obviously, a question for you rather than me. pws