Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2001 14:12:51 +0900
From:      "Akinori MUSHA" <knu@iDaemons.org>
To:        "Daniel C. Sobral" <dcs@newsguy.com>
Cc:        current@freebsd.org
Subject:   Re: find(1) -regex/-iregex
Message-ID:  <863dd8r54c.wl@archon.local.idaemons.org>
In-Reply-To: <3A93376D.B371FCD1@newsguy.com>
References:  <8666i588p4.wl@archon.local.idaemons.org> <3A93376D.B371FCD1@newsguy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At Wed, 21 Feb 2001 12:35:09 +0900,
Daniel C. Sobral wrote:
> I'm not familiar with find sources, but it seems to me you execute
> regcomp() for each file name to be compared? If so... change that! :-)
> Regcomp() does expensive setup so that regexec() can be run
> inexpensively many times over.

Indeed.  I'll do it soon, thanks.

> You forgot -E (use extended regexp syntax), and the example you show
> above is extended regexp syntax, not basic regexp syntax.

Noted.

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"We're only at home when we're on the run, on the wing, on the fly"

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?863dd8r54c.wl>