Re: [PATCH] compdump: improve performance

Bart Schaefer <[email protected]> Wed, 1 Jul 2026 22:12:38 -0700
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAH+w=7YHVE7-0mOr92wRquhbgHGWoNszktWeki=31SxdM0Zuyw@mail.gmail.com>
On Wed, Jul 1, 2026 at 8:39 PM dana <[email protected]> wrote:
>
> not related to performance but i also noticed that, in both compaudit
> and compdump, we sometimes treat the elements of fpath as glob patterns
> and sometimes not. to me that seems undesirable so i've made it not do
> that. but tell me if i'm wrong

I don't see from eyeballing which changes in this patch you refer to,
but typically the reason for treating array elements as glob patterns
is to be able to apply the (N) flag and thereby remove any paths that
don't exist.  $path and $fpath may be set in shared .z* files to cover
a number of possible locations that don't exist on every server where
the file is used.