zsh-users
 help / color / mirror / code / Atom feed
From: Tomasz Pala <gotar@polanet.pl>
To: zsh-users@zsh.org
Subject: Re: zcompiled files not used
Date: Sat, 7 Aug 2021 16:01:26 +0200	[thread overview]
Message-ID: <20210807140125.GA20255@polanet.pl> (raw)
In-Reply-To: <20210807114640.GA16427@polanet.pl>

On Sat, Aug 07, 2021 at 13:46:40 +0200, Tomasz Pala wrote:

> This is 32-bit image for HP thin client, this time run in 64-bit
> QEMU/KVM guest. However, when I chroot into this directly from the 64-bit 
> host, the behavior seems fine - there's a bunch of lstat64() without
> openat() of _zip file (esp. when I create digest functions.zwc).

Ah, the problem was missing $ZDOTDIR directory, which breaks zcompdump.

> My intention is to generate /usr/share/zsh/5.8/functions.zwc on boot:

Apparently this is not functional nor required - compinit won't prefer
zwc files over plain ones, but autoloading can make use of individual
zwc files, and .zcompdump file is 49 kB only.

> zcompile /usr/share/zsh/5.8/functions.zwc /usr/share/zsh/5.8/functions/*
> 
> as the destination thin client has very slow CPU and flash drive (20 MB/s
> sequential read) and it takes over 1 second to read all the 7 MBs of
> completion files and spawn new shell each time.

-- 
Tomasz Pala <gotar@pld-linux.org>


      reply	other threads:[~2021-08-07 14:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-07 11:46 Tomasz Pala
2021-08-07 14:01 ` Tomasz Pala [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210807140125.GA20255@polanet.pl \
    --to=gotar@polanet.pl \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).