From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2679 invoked by alias); 3 Apr 2012 17:51:07 -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: 16976 Received: (qmail 11111 invoked from network); 3 Apr 2012 17:51:05 -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=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.44 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YVX9WHNqYgXg3ONAMzp8rM/utO6knhz6YhknrOxGc/s=; b=QQIj76RRhvlXxiXPtTV+UOcNpfuxucNQW4LNfE2Osbrvlf+JO5+kul6Up23fiUvAea 4OZKboIuwZanYSX8cFuB54XQKRMHAXiUYdsgFT7VSUIsHyEAChCKZOu7u0hIBUd1XdZj bUEpeLlNem+gYK0BNlI9wYpomRkLDcDbAJ2NLMLuOVWr5Tj+tf2VrGB9XiaiheNRIkJh DOo0Mg58ya+b6OMsQ6MiQoBf0WWigR6djlK2UJ6+rYxKVYc850wXBG2vp1dQzVyqGPAd t3r46Cz+m9BfleBjdEDp9WDJYLJN7NORV+T9clbCNiN7Ozklc0Ygn+hLkcCzh1CijhQr d/hw== MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 3 Apr 2012 19:50:59 +0200 Message-ID: Subject: Re: Slow ZSH From: Mikael Magnusson To: Kyle Partridge Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 3 April 2012 18:56, Kyle Partridge wrote: > I have a slow loading zsh, where it sometimes takes longer than 10 seconds > to get to a prompt. > > I think the problem is compinit - I've run "zsh -v" multiple times to try > and find a slow down, and that seems to be the part that it hangs on. > > Is there any way to make this run faster? Is there a better way to debug > this problem? Are you using 4.3.11-4.3.15? They have a feature enabled that causes the path hash to be populated a bit slower. <.10 didn't have the feature and .16+ lets you disable it and has it disabled by default. -- Mikael Magnusson