Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zcompile bug? zcompile on a single script setting up a chpwd function
- X-seq: zsh-workers 47428
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: zcompile bug? zcompile on a single script setting up a chpwd function
- Date: Wed, 7 Oct 2020 10:01:24 +0200
- Archived-at: <https://zsh.org/workers/47428>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2020-10/CAN%3D4vMpj-cGcJsLrpdcRNvuex1cOYkw5rPrQL%3Dtrmt%3DK-2oKEg%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-il1-f181.google.com) smtp.remote-ip=209.85.166.181; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none
- 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; bh=f02SaW3Gwhdl4lZS4WNPmUfdDxveeyJ0Ucm3xsM3Iz0=; b=F22UyIOr8+3FNPKpBy/zj/MPRkV+nHwvSjIbgTHknkfASFB+cEKmP2Q/356sxS5t4/ biGYr3Ohatf13g5N+Hk7WcA2wg/pxfPfwbxNQea8dfoeeFoN5MSx5AcX0VIEfamr/TxH w++00Lu+8XzZ6/9xPfERlvg13NNdgcMXIa9B6MAmy1bK5CKGa/qgFy+H1eUqft6a2VIP jFW1hxdOC06rfGch3+usAx6q8U59eAzoIuVLa+lze4cIMWZYk09goUCPrwVJaITh1dJb w+QEtYMpN23Mcekk8AZPi8a4+OV4IwuvhepHBhXl6ws3fk7dJAEeqNFbfXKSGvr7Tp1X Q8qw==
- In-reply-to: <20201007074832.xharzoxhtecnjovy@ZENIX>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-workers>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-workers.zsh.org>
- List-owner: <mailto:zsh-workers-request@zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-workers>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-workers>
- References: <20201007074832.xharzoxhtecnjovy@ZENIX>
- Sender: zsh-workers-request@xxxxxxx
On Wed, Oct 7, 2020 at 9:48 AM Doron Behar <doron.behar@xxxxxxxxx> wrote:
>
> The function `_chpwd_task_contexts_parser` defined in that file slows
> down the shell startup time, and I was looking for a way to improve the
> situation. I tried simply zcompiling it
zcompiling doesn't improve execution speed of functions. It can
benefit you only if parsing takes a long time. Given the small size of
file `taskwarrior` (3.5KB), parsing should be almost instantaneous (at
most 1ms), so the speedup from zcompiling won't be noticeable.
> I get on startup:
>
> [3] 27780
> /home/doron/.zsh/chpwd/taskwarrior.zwc:1: no such file or directory: ^G^F^E^D^A
Looks like taskwarrior.zwc is corrupted. My practical advice is to
simply remove this file and not waste time on zcompile as it won't
help you anyway. Slow shell startup is likely caused by the slow
execution of _chpwd_set_task_context. You'll need to either avoid
invoking this function or make it run faster.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author