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 24213
- From: Peng Yu <pengyu.ut@xxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: Re: slow startup of zsh (1x slower than bash)
- Date: Fri, 6 Sep 2019 07:57:29 -0500
- Cc: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>, julien.nicoulaud@xxxxxxxxx, 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; bh=4mvd5vIJ/EMOC4SQSnUpJRW1puK3fXj6Sz7RGwWGkRo=; b=NH1BzDI4ici1M1AG608a/YpN9U4qtuYmP1SVyR49FwuKvC4yB10Jg/XxUNPs4uippX x1ga5DWaYWoMpVwmThEYNOqWCpM0GO44IVfWo0IMI+V4ZVlS2ZIX0pwj7mV7C8Djq4hs Cwcym9Dov3q6PGpeUHWt9CxfSnf2R9L/10RMq+7qR1ueJFAE+cyawwIyNGlRm3KWGruw SAfjL5j/CjuRetD5KQevuhiQIvY35OqIY6j9YU5n47SuevJ3CBu9ebWg3RjesJZqqARu tudNRUuS5h8/dZbpVLNLStsQcsnQq3PiiXMkfxr4PQxEL4PSA2+FxoykuBV2UUUb1QFN +H/w==
- In-reply-to: <CAN=4vMoYDBiYFdpo9v7OG_03DzjGPDGHww_0_wDsc3cbqwndJQ@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> <CAKc7PVDGmfMxkUzjmyFxJY7fNhHV16Z3xhQpNXnjEwAMf6G9hQ@mail.gmail.com> <CABrM6w=B8BP6Pk4HsW+XGDv0bpC9fYtNdr80SS6BtqegXJNcUA@mail.gmail.com> <CA+mcLN5dpscPNhpsKoA0j8tvcUh2-A7KOX7wNQYFQ7q3sdg+SA@mail.gmail.com> <CABrM6wkGd4=ikqoZOreovU95MpPe1fparZ+5qse-8fZ4M=3-OQ@mail.gmail.com> <CABrM6wk+PG2jopGJ8OqpUz-yaXqKet6aZJk2Oc7jZbjS3kWa9A@mail.gmail.com> <CAN=4vMrczC24GEH45UBaOtQY7rthiyWupmhPdJA+VgKuBnzobg@mail.gmail.com> <CABrM6wkvrMSpT=R22XYyA27hbqG75AyEuiamro9=Qs5kx2Skhg@mail.gmail.com> <CAN=4vMqS0o6QBOXXxPL2dCJGQLv+t61B0R+=eUSXaai3qgA4hQ@mail.gmail.com> <CABrM6w=0LBy99ePvChBe22v3XZ=JfY_Tbu0Guf8z6zcyALER3Q@mail.gmail.com> <CAN=4vMoYDBiYFdpo9v7OG_03DzjGPDGHww_0_wDsc3cbqwndJQ@mail.gmail.com>
>
>
> Perhaps you can change your code to spawn fewer zsh processes?
I am doing so. But because zsh is much slower than bash, I will not use zsh
for my scripts at all. Only if it is faster than bash, I may consider using
it. I think this is one aspect that zsh developers may consider to optimize.
What does your code look like? I've seen plenty of code that spends
> most of its CPU time on forking but I don't recall seeing anything
> that calls `zsh -dfc` or the like in a tight loop.
I just use shebang to call a specific shell for a whole script.
>
> --
Regards,
Peng
Messages sorted by:
Reverse Date,
Date,
Thread,
Author