From owner-freebsd-current Tue Feb 20 22: 9:17 2001 Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id EC17D37B401 for ; Tue, 20 Feb 2001 22:09:14 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p06-dn02kiryunisiki.gunma.ocn.ne.jp [211.0.245.71]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id PAA23646; Wed, 21 Feb 2001 15:09:10 +0900 (JST) Message-ID: <3A935ADE.21C1F6EC@newsguy.com> Date: Wed, 21 Feb 2001 15:06:22 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR MIME-Version: 1.0 To: Akinori MUSHA Cc: current@FreeBSD.ORG Subject: Re: find(1) -regex/-iregex References: <8666i588p4.wl@archon.local.idaemons.org> <3A93376D.B371FCD1@newsguy.com> <863dd8r54c.wl@archon.local.idaemons.org> <861yssr3cv.wl@archon.local.idaemons.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Akinori MUSHA 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. > > Updated. > > http://people.FreeBSD.org/~knu/misc/find_regex.diff You might have done it, but the version above is not it. :-) -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.fashionable.bsdconspiracy.net "Too bad sentience isn't a marketable commodity." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message