bug-gnulib
[Top][All Lists]
Advanced

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

Re: Relative speed of globbing and regex implementations


From: Jim Meyering
Subject: Re: Relative speed of globbing and regex implementations
Date: Fri, 07 Dec 2007 07:57:13 +0100

"James Youngman" <address@hidden> wrote:

> I notice that the gnulib fnmatch implementation is slower than the
> regex implementation, at least in those cases where a pattern can be
> compiled once and offered thousands of times.  Very roughly, I'd guess
> that the fnmatch implementation takes about 1.4x the time that the
> regex implementation takes.
>
> Is there a known reason for this, is it avoidable, or are we stuck
> with it?   I was considering figuring out how to rewrite globs as
> regexes, but thought I'd ask first...

This is news to me.
What type of patterns/regexps are you comparing?




reply via email to

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