From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15048 invoked by alias); 20 Nov 2013 06:19:51 -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: 18159 Received: (qmail 4927 invoked from network); 20 Nov 2013 06:19:47 -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=0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE, MISSING_HEADERS,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc :content-type; bh=OJaIg2gpp17Oku17ObW6z7OKnteBRG4Ofd9bcW/q6N0=; b=X1tJcFYtqsQ7miz5JlfeShou0BWW54B88IVAHCdH6ug2nrnWbsYhTSvosW44POrq7L iUMQiyt1av+fpRw9ipk9K1AnVqgYmJHob/km7f/oYBvuvIEO+bCs6Xj4ZU/z1GvQ2FiC hc0x1SlJQpRLH0GEXDyYnYUA4FKN+uzXbdy4vgE3GDLd2t7plRGghnlb91ma4JBJNDfC MSTqA8DYZMIbKO2/QVQKKFOTcYWZLAnAeoKEIA9vx/Rd9xV5yRm+sxiKABzjgVX2vXjT fz4/i2pMvkRHIu/yT2yWc/dBHVsXoUxGhJlvQjCrEqwCNff60T2ssCt4J4GDgv4luyfN Jo0A== X-Received: by 10.220.192.198 with SMTP id dr6mr24834257vcb.19.1384928385355; Tue, 19 Nov 2013 22:19:45 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <131119073326.ZM17938@torch.brasslantern.com> From: Timo Sand Date: Wed, 20 Nov 2013 08:19:25 +0200 Message-ID: Subject: Re: Opening a new tab is awkwardly slow Cc: Zsh Users Content-Type: multipart/alternative; boundary=001a11c2cde472d87f04eb95c440 --001a11c2cde472d87f04eb95c440 Content-Type: text/plain; charset=UTF-8 Forgot to add the link I updated the Gist content https://gist.github.com/deiga/7547991 On 20 November 2013 08:18, Timo Sand wrote: > Okay, so I removed nvm from initialization and put the `git config` in the > background (should really move it to once per desktop session, but haven't > got an idea yet as to how I'd do that). > > Also I added timing to the xtrace. > > 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. > > > On 19 November 2013 18:57, Bart Schaefer wrote: > >> On Tue, Nov 19, 2013 at 8:27 AM, Timo Sand wrote: >> > Here's the xtrace output https://gist.github.com/deiga/7547991 >> > >> > Not sure how to debug this, any help would be appreciated :) >> >> Well, to begin with, search for calls to the "git" and "nvm" functions. >> >> I only see one call to "git": >> >> +/Users/timosand/.zsh/system.zsh:9> git config --global >> credential.helper osxkeychain >> +git:0> hub config --global credential.helper osxkeychain >> >> I know OSX keychain operations can be really slow sometimes; you might >> want to consider doing that only once per desktop session rather than >> on every shell. Or put this in the background, if it's not directly >> modifying the current shell environment. >> >> The nvm activity seems to be from nvm.plugin.zsh, an oh-my-zsh module. >> >> The problem with using modular configuration systems like oh-my-zsh is >> that they encourage you to throw in all sorts of stuff that you might >> use only once in a blue moon, or to try things and then forget you >> have them enabled, so you're paying a continuous performance penalty >> for an occasional convenience. Part of the point of them being >> modular is that things can be easily unplugged, too ... >> > > > > -- > Timo Sand > timo.j.sand+sig@gmail.com > -- Timo Sand timo.j.sand+sig@gmail.com --001a11c2cde472d87f04eb95c440--