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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham 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 8f975ebe for ; Fri, 7 Dec 2018 02:20:32 +0000 (UTC) Received: (qmail 20816 invoked by alias); 7 Dec 2018 02:20: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: 23798 Received: (qmail 1216 invoked by uid 1010); 7 Dec 2018 02:20:17 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.210.44):SA:0(-2.0/5.0):. Processed in 4.361252 secs); 07 Dec 2018 02:20:17 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=uw/1dbjmMS5YpE9LsNY9xZEdAzrrAoYB3coN8NbBdKc=; b=rL80AblF69RkduHKL6PxTEskhLfWQSxqNMLRgkruIi2Ty/kvwlp6OV+5XN7qfr5gmn RY1fmIep8XH5oKJyptZFzJbDgZV96DGv7B5yFLHtaud+0TIF2fk3MJMQEiune7FJNPOF R6Y/l3METDt/m6ueY9Dp41RoEd6I53iL332nxyxZOgtEgHLIM3J++gHG7QF/0quk0X06 FqenWhZ/0bi6BzBJIGkskwC7EjnGVV+6Gx8aXNYzYG/ZQ+OhUppc4tkHPgOsh0WzqNUH oBSXcIYA81cRq4lVRhsOOH/ZmOccqTE2yJ4MGRV8HS1yjHZp6hFoM2lXgoBR9ItewanW ACMg== X-Gm-Message-State: AA+aEWaKzyoXSVDJvLAixhnsl3E3Z/6w9uUOPb21LkGGvP5K/rTRAX9N EAGZd1Flpdq6/fYI3avlDUVgjGaYL2kEolJiOw4= X-Google-Smtp-Source: AFSGD/UMSqoueQPSihsLXTwC+gHAKPTH1O6QP2xciZ0lgzyf/EgCYAx8agVmvZ5TO07eutnAEAiougQnxyPStB/Tsvo= X-Received: by 2002:a9d:17ca:: with SMTP id j68mr246626otj.268.1544149209886; Thu, 06 Dec 2018 18:20:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Fri, 7 Dec 2018 03:19:57 +0100 Message-ID: Subject: Re: slow startup of zsh (1x slower than bash) To: pengyu.ut@gmail.com Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 3 Dec 2018 at 17:28, Peng Yu 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 =E2=80=93 much is going on, automatically, i= n background. > -- > Regards, > Peng --=20 Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org