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
Date: Fri, 8 Jun 2001 10:05:32 -0700
From: "H . J . Lu" <hjl@lucon.org>
To: Zack Weinberg <zackw@stanford.edu>
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
Message-ID: <20010608100532.B5728@lucon.org>
References: <9003-Fri08Jun2001100651+0300-eliz@is.elta.co.il> <20010608095932.S979@stanford.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010608095932.S979@stanford.edu>; from zackw@stanford.edu on Fri, Jun 08, 2001 at 09:59:32AM -0700

On Fri, Jun 08, 2001 at 09:59:32AM -0700, Zack Weinberg wrote:
> 
> The regex.c that came with GDB 4.18, which I think is the one that got
> spread around widely, had a bug in its implementation of the POSIX
> regcomp/regexec interface, which caused a major performance hit.  That
> bug has been fixed in GNU libc for a long time.  When I replaced
> fixincludes' copy of regex.c with a more recent version from glibc,
> fixincludes was sped up by a factor of nine.  That same bug affects
> Sed 3.02 - replace the regex.c it ships with with the one from glibc
> 2.2.x and I bet you'll see better performance.
> 

I have been telling people that you should use regex.c in glibc if
all possible if you are using gnu-regex. Every package which uses
gnu-regex should have a configuration option not to use the included
gnu-regex.


H.J.

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

