From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 4fcd882d for ; Thu, 21 Mar 2019 03:29:09 +0000 (UTC) Received: (qmail 25568 invoked by alias); 21 Mar 2019 03:28:17 -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: List-Unsubscribe: X-Seq: 23879 Received: (qmail 17602 invoked by uid 1010); 21 Mar 2019 03:28:17 -0000 X-Qmail-Scanner-Diagnostics: from egnor-li.ofb.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.1/25393. spamassassin: 3.4.2. Clear:RC:0(23.92.24.4):SA:0(-2.0/5.0):. Processed in 2.750985 secs); 21 Mar 2019 03:28:17 -0000 X-Envelope-From: frederik@ofb.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at ofb.net designates 23.92.24.4 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ofb.net; s=ofb; t=1553138860; bh=k9if1Oe1c3pX7YYmZnZnzoVkTDHWihpRqlCX1thDONo=; h=Date:From:To:Subject:Reply-To:From; b=Q1FDqj8UrEYPYE/Ww9VASRW0CYQIrh5tQKYykmqJLUBGpVhFusN2ZpqVPdxwKaYpq fKRlsWscNCRndQnyFkwZh6TzdGOHiIr0NOzGY74G9J/QpZLkXkHD5NewimYrRECl7d dZtDXTiRsl8QkWYQPU7ydLZOr1/E1v+qBDTMQkti7OzO7/OZQ86X4bS9kVxkojrncD unxoxKTGb1jxHhOWNOJMHAbkwD9wQj8G2q1zxvqNGwE9IvdKC2RQQJFRly5q1UwKxO A7v1IohcmX32NV7+aLFaf995dfhtbBx0/O2YFwmdoylsV7JJSzX8JPXIwT1o7S0a0h 3w2xNVb1B0tYQ== Date: Wed, 20 Mar 2019 20:27:39 -0700 From: frederik@ofb.net To: zsh-workers@zsh.org, Zsh Users Subject: random thought: using fork to speed loading Message-ID: <20190321032739.n7j3qbpfk7weqqwc@localhost> Reply-To: frederik@ofb.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: 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