zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Opening a new tab is awkwardly slow
Date: Wed, 20 Nov 2013 12:35:47 +0000	[thread overview]
Message-ID: <20131120123547.2e9ab84f@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <CAMxBVSusW=zCoxRVzWytJAhQjAMXznMHMpZ5P9GUc9RjhiBb+Q@mail.gmail.com>

On Wed, 20 Nov 2013 08:19:25 +0200
Timo Sand <timo.j.sand@gmail.com> 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 <timo.j.sand@gmail.com> 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


      reply	other threads:[~2013-11-20 12:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19 10:51 Timo Sand
2013-11-19 15:33 ` Bart Schaefer
2013-11-19 16:27   ` Timo Sand
2013-11-19 16:40     ` Peter Stephenson
2013-11-19 16:57     ` Bart Schaefer
2013-11-20  6:18       ` Timo Sand
2013-11-20  6:19         ` Timo Sand
2013-11-20 12:35           ` Peter Stephenson [this message]

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=20131120123547.2e9ab84f@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=zsh-users@zsh.org \
    /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).