Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
To: Jim Blandy <jimb@cygnus.com>
Cc: Eli Zaretskii <eliz@is.elta.co.il>, dj@redhat.com, gcc@gcc.gnu.org,
        gdb@sources.redhat.com, binutils@sources.redhat.com,
        cygwin@sources.redhat.com
Subject: Re: Another RFC: regex in libiberty
References: <200106080127.VAA01308@greed.delorie.com>
	<9003-Fri08Jun2001100651+0300-eliz@is.elta.co.il>
	<nplmmyz1qv.fsf@zwingli.cygnus.com>
From: Jim Blandy <jimb@zwingli.cygnus.com>
Date: 12 Jun 2001 08:48:54 -0500
In-Reply-To: Jim Blandy's message of 12 Jun 2001 00:49:28 -0500
Message-ID: <np3d95zu49.fsf@zwingli.cygnus.com>
Lines: 9
X-Mailer: Gnus v5.3/Emacs 19.34


Jim Blandy <jimb@cygnus.com> writes:
> To generate every possible match, you have to choose every possible
> way to divide up those twenty a's amongst six .* patterns.  I think
> this is 20 choose 5, or 1.9 million, matches you have to try.  In
> general, I think the time to match POSIXly can increase exponentially
> in the length of your regexp, given a long enough data string.

20 choose 5 is, of course, only 15504, not 1.9 million.  Oops.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

