bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] glob. If pattern has a trailing slash match directories only


From: Dmitry Goncharov
Subject: Re: [patch] glob. If pattern has a trailing slash match directories only
Date: Sun, 17 Nov 2019 21:03:04 -0500

Good morning.

On Tue, Nov 12, 2019 at 8:44 PM Dmitry Goncharov
<address@hidden> wrote:
> On Sun, Nov 10, 2019 at 6:15 PM Paul Eggert <address@hidden> wrote:
> > It seems to me that the performance issues are still there, in the sense 
> > that if
> > GLOB_ONLYDIR is set then 'glob' now does a stat call on each directory 
> > entry to
> > see whether it's a directory.
>
> The idea is that this patch relieves the program from having to call
> stat and the total number of stats stays the same.

This version of the same patch covers GLOB_NOCHECK and GLOB_NOMAGIC better
for the trailing slash case
and also fixes glob ("", GLOB_NOMAGIC, ...) case.

regards, Dmitry



reply via email to

[Prev in Thread] Current Thread [Next in Thread]