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 24212
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Peng Yu <pengyu.ut@xxxxxxxxx>
- Subject: Re: slow startup of zsh (1x slower than bash)
- Date: Fri, 6 Sep 2019 11:35:08 +0200
- Cc: julien.nicoulaud@xxxxxxxxx, Sebastian Gniazdowski <sgniazdowski@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=QKlAZ9aEt1NwyOxXkBE/tls8f936lOiGj2VUPXgv490=; b=p2Nc1X7RaRbqZ/EV8g6PRjWX2ETZ8qu5vi76VwkTDsV+9UjlZYzsQ3P5m95NcfzioN aoaK4FfhkNTUDYNaPlSR5tOt7h1epjQH/uKCKiVS0Y7ce7ZASKhJEp7oGni6ZrSp93/u 8hDfu7lxEl4KYBK190NGmFszU6/o9dmcPLQDjEPCqPDGMgSZ66JavonstMM9efpSPItG Wm1FCsKLffv57twVGA1hwa6NVNGnhuc8WEhtGNvUCvaEbmbGPSoQm5W5WC3BbhBxw7Bb AVXIz+p5UMl1Ithw81UBhvbYi7oqXvUwbwyJe2KTPiOzeCudBWnxEhZVdbX5VuHo31VO Afww==
- In-reply-to: <CABrM6w=0LBy99ePvChBe22v3XZ=JfY_Tbu0Guf8z6zcyALER3Q@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>
On Thu, Sep 5, 2019 at 10:45 PM Peng Yu <pengyu.ut@xxxxxxxxx> wrote:
> > What are you trying to optimize? If you care about the startup time of
> > your interactive shell, 12 ms vs 6.7 ms doesn't make a difference.
>
> It is not for interactive use of zsh/bash. I am making scripts using
> shells. 12 vs 6.7 ms that is 1x or 50% difference depending on which
> way you consider the ratio, which is a quite significant difference.
Perhaps you can change your code to spawn fewer zsh processes?
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.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author