zsh-users
 help / color / mirror / code / Atom feed
From: Dan Nelson <dnelson@allantgroup.com>
To: Anthony Heading <aheading@jpmorgan.com>
Cc: zsh-users@sunsite.dk
Subject: Re: startup delay from compinit
Date: Tue, 7 Oct 2003 10:09:59 -0500	[thread overview]
Message-ID: <20031007150959.GG36117@dan.emsphone.com> (raw)
In-Reply-To: <20031007105820.GA23911@tkd-fires-02.ja.jpmorgan.com>

In the last episode (Oct 07), Anthony Heading said:
> I'd like to start using the "new" completion system, but running
> compinit from .zshrc seems to take about two seconds, which is
> frustrating since otherwise a new xterm takes only a few tens of
> milliseconds to be ready to use. (For ref, I'm using a 750Mhz Solaris
> sparcv9 machine).
> 
> I believe I've followed the instructions in zshcompsys, and have
> .zcompdump being created, and so on.  So am I doing something wrong,
> or is this time overhead to be expected?  If so, is there any
> alternative way to load all the completion functions lazily?

Is your home direcory used by different machines running zsh?  compinit
will regenerate the .zcompdump file if it thinks it doesn't match the
current system.

I run this in my startup script instead of plain compinit:

compinit -d $(print -P "${ZDOTDIR:-$HOME}/.zcompdump_%m")

which creates a separate ~/.zcompdump_machinename for each machine I
log into.
 
-- 
	Dan Nelson
	dnelson@allantgroup.com


  reply	other threads:[~2003-10-07 15:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-07 10:58 Anthony Heading
2003-10-07 15:09 ` Dan Nelson [this message]
2003-10-07 15:40 ` Bart Schaefer
2003-10-08  2:29   ` Anthony Heading
2003-10-08  4:43     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031007150959.GG36117@dan.emsphone.com \
    --to=dnelson@allantgroup.com \
    --cc=aheading@jpmorgan.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).