zsh-users
 help / color / mirror / code / Atom feed
From: TJ Luoma <luomat@gmail.com>
To: zsh-users@zsh.org
Subject: Re: do you use separate .zshenv and .zshrc files?
Date: Sat, 28 Apr 2012 19:19:17 -0400	[thread overview]
Message-ID: <8A6903319E9342C992395510B5F7C3EA@gmail.com> (raw)
In-Reply-To: <120428160334.ZM15454@torch.brasslantern.com>



On Saturday, April 28, 2012 at 7:03 PM, Bart Schaefer wrote:

> If you have a lot of configuration it may take somewhat longer to parse
> and execute the one big file when all that's going to happen is that a
> large part of it will be skipped. Remember that an "if" is a compound
> statement which has to all be read into memory to be sure it parses
> correctly before any of it can be executed (or discarded, if the
> condition is false). So a giant "if [[ -o interactive ]]; ..." may
> needlessly consume memory and time.

Ah, well, one of the things I have noticed lately is that zsh seems to be taking a little longer to launch, so I wonder if that's one of the reasons. 

I'm going to try splitting it into separate files and see if I like that better.

TjL



      reply	other threads:[~2012-04-28 23:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-28 19:07 TJ Luoma
2012-04-28 20:54 ` Benjamin R. Haskell
2012-04-28 21:01   ` Benjamin R. Haskell
2012-04-28 21:57   ` TJ Luoma
2012-04-28 22:25     ` Benjamin R. Haskell
2012-04-28 23:03 ` Bart Schaefer
2012-04-28 23:19   ` TJ Luoma [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=8A6903319E9342C992395510B5F7C3EA@gmail.com \
    --to=luomat@gmail.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).