Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: slow startup of zsh (1x slower than bash)
- X-seq: zsh-users 23798
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: pengyu.ut@xxxxxxxxx
- Subject: Re: slow startup of zsh (1x slower than bash)
- Date: Fri, 7 Dec 2018 03:19:57 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=uw/1dbjmMS5YpE9LsNY9xZEdAzrrAoYB3coN8NbBdKc=; b=cEzm6mVmul5Sdudi24xaee0VVyrRMCK/Q4Il5L3sZGAPtkiXdPimfG0jCuCWRmxOyc N6o0Glr5968bHTeUZ0Ka5gje6Uy3x5KTkdmjiOWjYoIbjEMKzwVFK/MSTo+zfRFBJirg XHAa4+ZXiFXLinYm2FfMvbYh5P8ubI6xKmX+FoGBzBMTlTWpNzRary5CcZtbPDDykIdU x5XHwjsn/4xnxcCSPwvvM6MHBprjP48ruifvPoXzcGH8VhRZvlx+oscfcRROJ4Ikbw3T gXrcqEy7m0Z3SciZIAxYx13soSCRfA/9lgTJHfzw/rAT3O2APChn3YbsfqdCHDsnlts5 TtOA==
- In-reply-to: <CABrM6wk-psFFZcZW+M7OwD0ZwrMbNk4MN7e9aaJF9kBOFsVK4w@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABrM6wk-psFFZcZW+M7OwD0ZwrMbNk4MN7e9aaJF9kBOFsVK4w@mail.gmail.com>
On Mon, 3 Dec 2018 at 17:28, Peng Yu <pengyu.ut@xxxxxxxxx> wrote:
>
> Hi,
>
> The following example shows that zsh startup time is much slower than
> other shells. Can this be improved to at least as fast as bash?
>
Is it the last zsh version that's being tested? There was 2x startup
improvement at 5.4 or something like this.
Also, Zplugin can load plugins after prompt, I load 20 plugins, and my
startup times are:
repeat 5 { time /usr/local/bin/zsh-5.6.2-dev-1 -i -c exit }
/usr/local/bin/zsh-5.6.2-dev-1 -i -c exit 0,09s user 0,04s system
117% cpu 0,111 total
/usr/local/bin/zsh-5.6.2-dev-1 -i -c exit 0,10s user 0,05s system
119% cpu 0,130 total
/usr/local/bin/zsh-5.6.2-dev-1 -i -c exit 0,11s user 0,05s system
121% cpu 0,129 total
/usr/local/bin/zsh-5.6.2-dev-1 -i -c exit 0,09s user 0,04s system
115% cpu 0,119 total
/usr/local/bin/zsh-5.6.2-dev-1 -i -c exit 0,09s user 0,04s system
117% cpu 0,109 total
I even load prompt after a default prompt, ~ 100 ms after it. The
Star-Trek console-like impression this gives can be visible here:
https://asciinema.org/a/156726 – much is going on, automatically, in
background.
> --
> Regards,
> Peng
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author