Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] compinit forks less



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




Messages sorted by: Reverse Date, Date, Thread, Author