From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19761 invoked by alias); 14 Aug 2011 17:33:01 -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: 16218 Received: (qmail 15038 invoked from network); 14 Aug 2011 17:32:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Sun, 14 Aug 2011 19:32:47 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Cc: gi1242+zsh@gmail.com Subject: Re: "Once-a-day" long delay before startup Message-ID: <20110814173247.GH20653@prunille.vinc17.org> Mail-Followup-To: zsh-users@zsh.org, gi1242+zsh@gmail.com References: <20110814145749.GA6341@andrew.cmu.edu> <20110814153605.GG20653@prunille.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110814153605.GG20653@prunille.vinc17.org> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6194-vl-r44775 (2011-07-13) On 2011-08-14 17:36:05 +0200, Vincent Lefevre wrote: > I have a similar problem on my Mac OS X machine after doing a disk or > memory intensive operation (AFAIK), but I haven't had the time to look > at it yet. I wonder whether this comes from the code that builds the > command hash. I had a "locale -a" for automatic locale detection and settings, which could be very slow. I now avoid it, but zsh startup is still a bit slow at the first command that is in a directory with more than 2000 commands[*] (unless the data are in the disk cache). So, I suggest anyone who sees intensive dist access to look at such problems. [*] Test done after a "svn st" in a large working copy. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)