Re: [PATCH] compinit forks less

dana <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <[email protected]>
On Thu 30 Apr 2026, at 02:20, Charles Blake wrote:
> This patch to use non-forking command substitution with a here-string
> to analyze `bindkey`.

on my mac this saves <100 µs per call and as mikael said it creates temp
files

if we're optimising anyway maybe we could just do

  opt=( ${(s< >)${ bindkey $3 }} )

(i don't think bindkey actually outputs tabs?)

which saves 230+ µs for me and avoids touching the file system

untested (aside from the timing) though

dana
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.