zsh-users
 help / color / mirror / code / Atom feed
From: frederik@ofb.net
To: zsh-workers@zsh.org, Zsh Users <zsh-users@zsh.org>
Subject: random thought: using fork to speed loading
Date: Wed, 20 Mar 2019 20:27:39 -0700	[thread overview]
Message-ID: <20190321032739.n7j3qbpfk7weqqwc@localhost> (raw)

Dear Zsh People,

I've been wondering how to get my Zsh startup time down. For me, 0.1s
is a bit too laggy, although I've seen reports of people having much
longer startup times, upwards of multiple seconds.

I wonder if there is a way to arrange for Zsh to act like a server,
where instead of starting a new Zsh every time I open a terminal or
Screen window, I could ask some server process, which has already
loaded my .zshrc, to fork and provide a way to communicate with the
child.

Clearly there are potential pitfalls regarding staleness when .zshrc
is modified, having correct parent processes, environment etc.

Also, this question isn't meant to help me address my immediate
practical and very slight needs. I mostly wanted to "throw it out
there" in case others have heard of such a proposal or would find it
interesting to implement.

Thank you,

Frederick

                 reply	other threads:[~2019-03-21  3:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20190321032739.n7j3qbpfk7weqqwc@localhost \
    --to=frederik@ofb.net \
    --cc=zsh-users@zsh.org \
    --cc=zsh-workers@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).